Module: Rumai::WidgetImpl

Included in:
Area, View, WidgetNode
Defined in:
lib/rumai/wm.rb

Overview

Note:

Inheritors must define a curr class method.

Note:

Inheritors must override the focus method.

The basic building block of the WM hierarchy.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) id (readonly)

Returns the value of attribute id



83
84
85
# File 'lib/rumai/wm.rb', line 83

def id
  @id
end

Instance Method Details

- (Object) ==(other)



85
86
87
# File 'lib/rumai/wm.rb', line 85

def == other
  @id == other.id
end

- (Boolean) current? Also known as: focus?

Checks if this widget currently has focus.

Returns:

  • (Boolean)


92
93
94
# File 'lib/rumai/wm.rb', line 92

def current?
  self == self.class.curr
end