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
-
- (Object) id
readonly
Returns the value of attribute id.
Instance Method Summary
- - (Object) ==(other)
-
- (Boolean) current?
(also: #focus?)
Checks if this widget currently has focus.
Instance Attribute Details
- (Object) id (readonly)
Returns the value of attribute id
67 68 69 |
# File 'lib/rumai/wm.rb', line 67 def id @id end |
Instance Method Details
- (Object) ==(other)
69 70 71 |
# File 'lib/rumai/wm.rb', line 69 def == other @id == other.id end |
- (Boolean) current? Also known as: focus?
Checks if this widget currently has focus.
76 77 78 |
# File 'lib/rumai/wm.rb', line 76 def current? self == self.class.curr end |