Module: Lustr::Defaults

Defined in:
lib/lustr/defaults.rb

Class Method Summary collapse

Class Method Details

.appObject



18
19
20
# File 'lib/lustr/defaults.rb', line 18

def self.app
	{:title=>'', :width=>640, :height=>480}
end

.boxObject



22
23
24
# File 'lib/lustr/defaults.rb', line 22

def self.box
	{:direction=>:vertical}
end

.buttonObject



26
27
28
# File 'lib/lustr/defaults.rb', line 26

def self.button
	{:text=>'Click me!'}
end

.divided_boxObject



30
31
32
# File 'lib/lustr/defaults.rb', line 30

def self.divided_box
	box
end

.fieldObject



34
35
36
# File 'lib/lustr/defaults.rb', line 34

def self.field
	{:text=>''}
end

.html_areaObject



38
39
40
# File 'lib/lustr/defaults.rb', line 38

def self.html_area
	{:wordWrap=>false}
end

.labelObject



42
43
44
# File 'lib/lustr/defaults.rb', line 42

def self.label
	{:text=>''}
end

.listObject



46
47
48
# File 'lib/lustr/defaults.rb', line 46

def self.list
	{:editable=>false}
end

.method_missing(sym, *parms) ⇒ Object



62
63
64
# File 'lib/lustr/defaults.rb', line 62

def self.method_missing(sym, *parms)
	{}
end

.tab_panelObject



50
51
52
# File 'lib/lustr/defaults.rb', line 50

def self.tab_panel
	{:label=>''}
end

.text_areaObject



54
55
56
# File 'lib/lustr/defaults.rb', line 54

def self.text_area
	{:editable=>true, :wordWrap=>false}
end

.treeObject



58
59
60
# File 'lib/lustr/defaults.rb', line 58

def self.tree
	{}
end