Sha256: 1a422259237995aa963c45f4917b78fbd2b6e970b293aa9e3d425e354326d92f
Contents?: true
Size: 1.79 KB
Versions: 1
Compression:
Stored size: 1.79 KB
Contents
# -*- coding: utf-8 -*- require 'forwardable' require 'xot/setter' require 'xot/universal_accessor' 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, :timeout, :delay, :interval, :add_child, :add, :remove_child, :remove, :find_child, :find, :find_children, :style, :styles, :scroll_to, :scroll_by, :scroll, :meter2pixel, :meter, :wall, :zoom=, :zoom, :clip=, :clip, :clip?, :cache=, :cache, :cache?, :flow=, :flow, :fill=, :fill, :stroke=, :stroke, :foreground=, :foreground, :background=, :background, :foreground_fill=, :foreground_fill, :foreground_stroke=, :foreground_stroke, :background_fill=, :background_fill, :background_stroke=, :background_stroke, :image=, :image, :gravity=, :gravity, :time_scale=, :time_scale, :debug=, :debug, :debug? def_delegators :wall, :friction=, :friction, :restitution=, :restitution universal_accessor :title, :frame, resizable: {reader: :resizable?} def initialize (options = nil, &block) super() set options if options @show_block = 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.21 | lib/reflex/window.rb |