Class: Lustr4Wx::DividedBox

Inherits:
Wx::SplitterWindow
  • Object
show all
Includes:
Lustr::WidgetBase
Defined in:
lib/lustr-wx/divided_box.rb

Instance Method Summary collapse

Instance Method Details

#<<(child) ⇒ Object



32
33
34
35
36
37
38
39
40
41
42
# File 'lib/lustr-wx/divided_box.rb', line 32

def <<(child)
	super

	if children.size==2
		if @direction==:vertical
			split_horizontally(children[0].resolve, children[1].resolve)
		else
			split_vertically(children[0].resolve, children[1].resolve)
		end
	end
end

#init_options(options) ⇒ Object



25
26
27
28
29
30
# File 'lib/lustr-wx/divided_box.rb', line 25

def init_options(options)
	super
	
	@direction=option(:direction)
	self.label=option(:label)
end