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
7 |
# File 'lib/ruby2d/dsl.rb', line 7 def self.window; @window end |
.window=(w) ⇒ Object
8 |
# File 'lib/ruby2d/dsl.rb', line 8 def self.window=(w); @window = w end |
Instance Method Details
#get(sym, opts = nil) ⇒ Object
10 11 12 |
# File 'lib/ruby2d/dsl.rb', line 10 def get(sym, opts = nil) DSL.window.get(sym, opts) end |
#off(event_descriptor) ⇒ Object
22 23 24 |
# File 'lib/ruby2d/dsl.rb', line 22 def off(event_descriptor) DSL.window.off(event_descriptor) end |
#on(event, &proc) ⇒ Object
18 19 20 |
# File 'lib/ruby2d/dsl.rb', line 18 def on(event, &proc) DSL.window.on(event, &proc) end |
#render(&proc) ⇒ Object
30 31 32 |
# File 'lib/ruby2d/dsl.rb', line 30 def render(&proc) DSL.window.render(&proc) end |