Module: Ruby2D::Application
- Defined in:
- lib/ruby2d/application.rb
Overview
application.rb
Constant Summary collapse
Class Method Summary collapse
- .add(o) ⇒ Object
- .clear ⇒ Object
- .close ⇒ Object
- .get(sym) ⇒ Object
- .off(event_descriptor) ⇒ Object
- .on(event, &proc) ⇒ Object
- .remove(o) ⇒ Object
- .set(opts) ⇒ Object
- .show ⇒ Object
- .update(&proc) ⇒ Object
Class Method Details
.add(o) ⇒ Object
23 24 25 |
# File 'lib/ruby2d/application.rb', line 23 def add(o) @@window.add(o) end |
.get(sym) ⇒ Object
7 8 9 |
# File 'lib/ruby2d/application.rb', line 7 def get(sym) @@window.get(sym) end |
.off(event_descriptor) ⇒ Object
19 20 21 |
# File 'lib/ruby2d/application.rb', line 19 def off(event_descriptor) @@window.off(event_descriptor) end |
.on(event, &proc) ⇒ Object
15 16 17 |
# File 'lib/ruby2d/application.rb', line 15 def on(event, &proc) @@window.on(event, &proc) end |
.remove(o) ⇒ Object
27 28 29 |
# File 'lib/ruby2d/application.rb', line 27 def remove(o) @@window.remove(o) end |