Class: Reflex::Window
- Inherits:
-
Object
- Object
- Reflex::Window
- Extended by:
- Forwardable
- Includes:
- HasFrame, Xot::Hookable, Xot::Inspectable, Xot::Setter
- Defined in:
- lib/reflex/window.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = nil, &block) ⇒ Window
constructor
A new instance of Window.
- #paint(&block) ⇒ Object
Methods included from HasFrame
#inset_by, #move_by, #move_to, #resize_by, #resize_to
Constructor Details
#initialize(options = nil, &block) ⇒ Window
Returns a new instance of Window.
77 78 79 80 81 |
# File 'lib/reflex/window.rb', line 77 def initialize( = nil, &block) super() set if @show_block = block end |
Class Method Details
.show(*args, &block) ⇒ Object
87 88 89 |
# File 'lib/reflex/window.rb', line 87 def self.show(*args, &block) new(*args, &block).show end |
Instance Method Details
#paint(&block) ⇒ Object
83 84 85 |
# File 'lib/reflex/window.rb', line 83 def paint(&block) painter.begin(&block) end |