Class: Reflex::Window

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

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HasFrame

#frame, #frame=, #inset_by, #move_by, #move_to, #resize_by, #resize_to

Methods included from Hookable

#hook

Constructor Details

#initialize(opts = {}, &block) ⇒ Window

Returns a new instance of Window.



30
31
32
33
34
# File 'lib/reflex/window.rb', line 30

def initialize (opts = {}, &block)
  super()
  set opts
  @show_block = block if block
end

Class Method Details

.show(*args, &block) ⇒ Object



40
41
42
# File 'lib/reflex/window.rb', line 40

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

Instance Method Details

#paint(&block) ⇒ Object



36
37
38
# File 'lib/reflex/window.rb', line 36

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