Sha256: 2218a7e970cb49782f0c178d944436ac6eeea16ef7311f57fefab21f4972997d

Contents?: true

Size: 449 Bytes

Versions: 8

Compression:

Stored size: 449 Bytes

Contents

# Ruby2D::DSL

module Ruby2D::DSL

  Ruby2D::Window.new

  def get(sym, opts = nil)
    Window.get(sym, opts)
  end

  def set(opts)
    Window.set(opts)
  end

  def on(event, &proc)
    Window.on(event, &proc)
  end

  def off(event_descriptor)
    Window.off(event_descriptor)
  end

  def update(&proc)
    Window.update(&proc)
  end

  def clear
    Window.clear
  end

  def show
    Window.show
  end

  def close
    Window.close
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ruby2d-0.9.5 lib/ruby2d/dsl.rb
ruby2d-0.9.4 lib/ruby2d/dsl.rb
ruby2d-0.9.3 lib/ruby2d/dsl.rb
ruby2d-0.9.2 lib/ruby2d/dsl.rb
ruby2d-0.9.1 lib/ruby2d/dsl.rb
ruby2d-0.9.0 lib/ruby2d/dsl.rb
ruby2d-0.8.1 lib/ruby2d/dsl.rb
ruby2d-0.8.0 lib/ruby2d/dsl.rb