Sha256: c00ae2685955e535a7adb9af7fa8719aecf60ddce78e2c6951cf0d5b92439f3b
Contents?: true
Size: 532 Bytes
Versions: 4
Compression:
Stored size: 532 Bytes
Contents
module Ray class Window # @param title (see #open) # @param size (see #open) # @param opts (see #open) def initialize(title = nil, size = [640, 480], opts = {}) open(title, size, opts) if title end alias size= resize # @yieldparam [Ray::Event] event Each event to be processed def each_event return Enumerator.new(self, :each_event) unless block_given? ev = Ray::Event.new until poll_event(ev).type == Ray::Event::TypeNone yield ev end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ray-0.2.1 | lib/ray/window.rb |
ray-0.2.0 | lib/ray/window.rb |
ray-0.1.1 | lib/ray/window.rb |
ray-0.1.0 | lib/ray/window.rb |