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 |
.window=(window) ⇒ Object
12 13 14 |
# File 'lib/ruby2d/dsl.rb', line 12 def self.window=(window) @window = window end |
Instance Method Details
#clear ⇒ Object
40 41 42 |
# File 'lib/ruby2d/dsl.rb', line 40 def clear DSL.window.clear end |
#close ⇒ Object
48 49 50 |
# File 'lib/ruby2d/dsl.rb', line 48 def close DSL.window.close end |
#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 |
#set(opts) ⇒ Object
20 21 22 |
# File 'lib/ruby2d/dsl.rb', line 20 def set(opts) DSL.window.set(opts) end |
#show ⇒ Object
44 45 46 |
# File 'lib/ruby2d/dsl.rb', line 44 def show DSL.window.show end |
#update(&proc) ⇒ Object
32 33 34 |
# File 'lib/ruby2d/dsl.rb', line 32 def update(&proc) DSL.window.update(&proc) end |