Sha256: c384b31ef2a75ab12411a92bb9a80b594eaca228c7477b1bd8cf7249f73f4c4c
Contents?: true
Size: 637 Bytes
Versions: 5
Compression:
Stored size: 637 Bytes
Contents
# application.rb module Ruby2D::Application class << self @@window = Ruby2D::Window.new def get(sym) @@window.get(sym) 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 add(o) @@window.add(o) end def remove(o) @@window.remove(o) end def clear @@window.clear end def update(&proc) @@window.update(&proc) end def show @@window.show end def close @@window.close end end end
Version data entries
5 entries across 5 versions & 1 rubygems