Class: Fox::FXWindow
- Inherits:
-
Object
- Object
- Fox::FXWindow
- Defined in:
- lib/libGUIb16.rb,
lib/libGUIb14.rb
Instance Method Summary collapse
- #enabled=(bool) ⇒ Object
- #pad(*args) ⇒ Object
- #padding ⇒ Object
-
#recursive(&block) ⇒ Object
{|wdg| … }.
- #visible=(bool) ⇒ Object
Instance Method Details
#enabled=(bool) ⇒ Object
1071 1072 1073 |
# File 'lib/libGUIb16.rb', line 1071 def enabled=bool bool ? enable : disable end |
#pad(*args) ⇒ Object
1080 1081 1082 1083 1084 1085 |
# File 'lib/libGUIb16.rb', line 1080 def pad(*args) args[0] ? self.padLeft = args[0] : nil args[1] ? self.padRight = args[1] : nil args[2] ? self.padTop = args[2] : nil args[3] ? self.padBottom = args[3] : nil end |
#padding ⇒ Object
1087 1088 1089 |
# File 'lib/libGUIb16.rb', line 1087 def padding [padLeft, padRight, padTop, padBottom] end |
#recursive(&block) ⇒ Object
{|wdg| … }
1091 1092 1093 1094 1095 1096 |
# File 'lib/libGUIb16.rb', line 1091 def recursive(&block) # {|wdg| ... } if block yield(self) children.each { |child| child.recursive(&block) } end end |
#visible=(bool) ⇒ Object
1075 1076 1077 |
# File 'lib/libGUIb16.rb', line 1075 def visible=bool bool ? show : hide end |