Module: Ruby2D::DSL

Defined in:
lib/ruby2d/dsl.rb

Overview

Ruby2D::DSL

Instance Method Summary collapse

Instance Method Details

#clearObject



27
28
29
# File 'lib/ruby2d/dsl.rb', line 27

def clear
  Window.clear
end

#closeObject



35
36
37
# File 'lib/ruby2d/dsl.rb', line 35

def close
  Window.close
end

#get(sym, opts = nil) ⇒ Object



7
8
9
# File 'lib/ruby2d/dsl.rb', line 7

def get(sym, opts = nil)
  Window.get(sym, opts)
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

#showObject



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