Sha256: 5966c8a2334455c2ee2d02f4790c45975c3eca62619e659efafb723a5ee8c474
Contents?: true
Size: 1.02 KB
Versions: 1
Compression:
Stored size: 1.02 KB
Contents
# -*- coding: utf-8 -*- require 'forwardable' require 'xot/setter' require 'xot/block_util' require 'reflex/ext' require 'reflex/helper' module Reflex class Window include Xot::Setter include Hookable include HasFrame extend Forwardable def_delegators :root, :add_child, :remove_child, :find_children, :style, :meter2pixel, :meter, :gravity=, :gravity, :wall, :debug=, :debug? def_delegators :wall, :friction=, :friction, :restitution=, :restitution alias add add_child alias remove remove_child alias find find_children def initialize (opts = {}, &block) super() set opts @show_block = block if block end def paint (&block) painter.begin &block end def self.show (*args, &block) new(*args, &block).show end private def call_show_block () return unless @show_block Xot::BlockUtil.instance_eval_or_block_call self, &@show_block @show_block = nil end end# Window end# Reflex
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reflexion-0.1.10 | lib/reflex/window.rb |