Module: Ruby2D::DSL
- Defined in:
- lib/ruby2d/dsl.rb
Overview
Ruby2D::DSL
Class Method Summary collapse
Instance Method Summary collapse
- #clear ⇒ Object
- #close ⇒ Object
- #get(sym, opts = nil) ⇒ Object
- #off(event_descriptor) ⇒ Object
- #on(event, &proc) ⇒ Object
- #render(&proc) ⇒ Object
- #set(opts) ⇒ Object
- #show ⇒ Object
- #update(&proc) ⇒ Object
Class Method Details
.window ⇒ Object
8 9 10 |
# File 'lib/ruby2d/dsl.rb', line 8 def self.window @window end |
Instance Method Details
#get(sym, opts = nil) ⇒ Object
16 17 18 |
# File 'lib/ruby2d/dsl.rb', line 16 def get(sym, opts = nil) DSL.window.get(sym, opts) end |
#off(event_descriptor) ⇒ Object
28 29 30 |
# File 'lib/ruby2d/dsl.rb', line 28 def off(event_descriptor) DSL.window.off(event_descriptor) end |
#on(event, &proc) ⇒ Object
24 25 26 |
# File 'lib/ruby2d/dsl.rb', line 24 def on(event, &proc) DSL.window.on(event, &proc) end |
#render(&proc) ⇒ Object
36 37 38 |
# File 'lib/ruby2d/dsl.rb', line 36 def render(&proc) DSL.window.render(&proc) end |