Module: Ruby2D::DSL
- Defined in:
- lib/ruby2d/dsl.rb
Overview
Ruby2D::DSL
Instance Method Summary collapse
- #clear ⇒ Object
- #close ⇒ Object
- #get(sym) ⇒ Object
- #off(event_descriptor) ⇒ Object
- #on(event, &proc) ⇒ Object
- #set(opts) ⇒ Object
- #show ⇒ Object
- #update(&proc) ⇒ Object
Instance Method Details
#clear ⇒ Object
27 28 29 |
# File 'lib/ruby2d/dsl.rb', line 27 def clear Window.clear end |
#close ⇒ Object
35 36 37 |
# File 'lib/ruby2d/dsl.rb', line 35 def close Window.close end |
#get(sym) ⇒ Object
7 8 9 |
# File 'lib/ruby2d/dsl.rb', line 7 def get(sym) Window.get(sym) end |
#off(event_descriptor) ⇒ Object
19 20 21 |
# File 'lib/ruby2d/dsl.rb', line 19 def off(event_descriptor) Window.off(event_descriptor) end |
#on(event, &proc) ⇒ Object
15 16 17 |
# File 'lib/ruby2d/dsl.rb', line 15 def on(event, &proc) Window.on(event, &proc) end |
#set(opts) ⇒ Object
11 12 13 |
# File 'lib/ruby2d/dsl.rb', line 11 def set(opts) Window.set(opts) end |
#show ⇒ Object
31 32 33 |
# File 'lib/ruby2d/dsl.rb', line 31 def show Window.show end |
#update(&proc) ⇒ Object
23 24 25 |
# File 'lib/ruby2d/dsl.rb', line 23 def update(&proc) Window.update(&proc) end |