Class: Fox::FXColorItem
- Inherits:
-
FXListItem
- Object
- FXObject
- FXListItem
- Fox::FXColorItem
- Defined in:
- rdoc-sources/FXColorList.rb
Overview
Color item
Instance Attribute Summary collapse
-
#color ⇒ Object
Item color FXColor.
Attributes inherited from FXListItem
#data, #draggable, #enabled, #focus, #icon, #selected, #text
Instance Method Summary collapse
-
#initialize(text, clr, data = nil) ⇒ FXColorItem
constructor
Return a new color item, initialized with the given text, color and user data.
Methods inherited from FXListItem
#<=>, #create, #destroy, #detach, #draggable?, #enabled?, #getHeight, #getWidth, #hasFocus?, #selected?, #to_s
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(text, clr, data = nil) ⇒ FXColorItem
Return a new color item, initialized with the given text, color and user data.
9 10 |
# File 'rdoc-sources/FXColorList.rb', line 9 def initialize(text, clr, data=nil) # :yields: theColorItem end |
Instance Attribute Details
#color ⇒ Object
Item color Fox::FXColor
5 6 7 |
# File 'rdoc-sources/FXColorList.rb', line 5 def color @color end |