Class: FlatStyle
- Inherits:
-
StyleVisitor
- Object
- StyleVisitor
- FlatStyle
- Defined in:
- lib/libGUIb16.rb,
lib/libGUIb14.rb
Instance Attribute Summary collapse
-
#frameColor ⇒ Object
Returns the value of attribute frameColor.
Instance Method Summary collapse
- #Button_style(w) ⇒ Object
-
#initialize ⇒ FlatStyle
constructor
A new instance of FlatStyle.
- #method_missing(*args) ⇒ Object
- #TextField_style(w) ⇒ Object
Methods inherited from StyleVisitor
Constructor Details
#initialize ⇒ FlatStyle
Returns a new instance of FlatStyle.
1483 1484 1485 1486 |
# File 'lib/libGUIb16.rb', line 1483 def initialize @frameColor = Fox::FXRGB 0, 0, 0 @backColor = Fox::FXRGB 230, 230, 230 end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
1500 1501 1502 1503 1504 1505 1506 1507 |
# File 'lib/libGUIb16.rb', line 1500 def method_missing(*args) identifier, w = args unless /style/.match?(identifier.to_s) raise args.join(",") end w.backColor = @backColor w end |
Instance Attribute Details
#frameColor ⇒ Object
Returns the value of attribute frameColor.
1482 1483 1484 |
# File 'lib/libGUIb16.rb', line 1482 def frameColor @frameColor end |
Instance Method Details
#Button_style(w) ⇒ Object
1488 1489 1490 1491 1492 1493 |
# File 'lib/libGUIb16.rb', line 1488 def Button_style w w.frameStyle = Fox::FRAME_LINE w.hiliteColor = @frameColor w.shadowColor = @frameColor w.backColor = @backColor end |
#TextField_style(w) ⇒ Object
1495 1496 1497 1498 |
# File 'lib/libGUIb16.rb', line 1495 def TextField_style w w.frameStyle = Fox::FRAME_LINE w.borderColor = Fox::FXRGB 168, 168, 168 end |