Class: Reflex::Window

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
HasFrame, Hookable, Xot::Inspectable, Xot::Setter
Defined in:
lib/reflex/window.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasFrame

#inset_by, #move_by, #move_to, #resize_by, #resize_to

Methods included from Hookable

#hook

Constructor Details

#initialize(options = nil, &block) ⇒ Window

Returns a new instance of Window.



76
77
78
79
80
# File 'lib/reflex/window.rb', line 76

def initialize(options = nil, &block)
  super()
  set options if options
  @show_block = block
end

Class Method Details

.show(*args, &block) ⇒ Object



86
87
88
# File 'lib/reflex/window.rb', line 86

def self.show(*args, &block)
  new(*args, &block).show
end

Instance Method Details

#paint(&block) ⇒ Object



82
83
84
# File 'lib/reflex/window.rb', line 82

def paint(&block)
  painter.begin(&block)
end