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.



33
34
35
36
37
# File 'lib/reflex/window.rb', line 33

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

Class Method Details

.show(*args, &block) ⇒ Object



43
44
45
# File 'lib/reflex/window.rb', line 43

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

Instance Method Details

#paint(&block) ⇒ Object



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

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