Class: Reflexion::MainWindow
- Inherits:
-
Window
- Object
- Window
- Reflexion::MainWindow
- Defined in:
- lib/reflexion.rb
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Instance Method Summary collapse
-
#initialize(*args, &block) ⇒ MainWindow
constructor
A new instance of MainWindow.
- #on_draw(e) ⇒ Object
- #on_key(e) ⇒ Object
- #on_pointer(e) ⇒ Object
- #on_update(e) ⇒ Object
Constructor Details
#initialize(*args, &block) ⇒ MainWindow
Returns a new instance of MainWindow.
42 43 44 45 46 |
# File 'lib/reflexion.rb', line 42 def initialize (*args, &block) super $window = self call_event nil, self, &$setup end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
40 41 42 |
# File 'lib/reflexion.rb', line 40 def event @event end |
Instance Method Details
#on_draw(e) ⇒ Object
54 55 56 57 |
# File 'lib/reflexion.rb', line 54 def on_draw (e) super call_event e, e.painter, &$draw end |
#on_key(e) ⇒ Object
59 60 61 62 |
# File 'lib/reflexion.rb', line 59 def on_key (e) super call_event e, e, &$key end |
#on_pointer(e) ⇒ Object
64 65 66 67 |
# File 'lib/reflexion.rb', line 64 def on_pointer (e) super call_event e, e, &$pointer end |
#on_update(e) ⇒ Object
48 49 50 51 52 |
# File 'lib/reflexion.rb', line 48 def on_update (e) super redraw call_event e, e, &$update end |