Class: Fox::FXIconItem
- Inherits:
-
FXObject
- Object
- FXObject
- Fox::FXIconItem
- Defined in:
- rdoc-sources/FXIconList.rb,
lib/fox16/core.rb
Overview
Icon list item
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (Object) bigIcon
Big icon FXIcon.
-
- (Object) data
Item user data [Object].
-
- (Object) draggable
writeonly
Indicates whether this item is draggable or not [Boolean].
-
- (Object) enabled
writeonly
Indicates whether this item is enabled or not [Boolean].
-
- (Object) miniIcon
Mini icon FXIcon.
-
- (Object) selected
writeonly
Indicates whether this item is selected or not [Boolean].
-
- (Object) text
Item text [String].
Instance Method Summary (collapse)
- - (Object) <=>(otherItem)
-
- (Object) create
Create this item.
-
- (Object) destroy
Destroy this item.
-
- (Object) detach
Detach this item.
-
- (Boolean) draggable?
Return true if this item is draggable.
-
- (Boolean) enabled?
Return true if this item is enabled.
-
- (Object) getHeight(iconList)
Return the height of this item.
-
- (Object) getWidth(iconList)
Return the width of this item.
-
- (Boolean) hasFocus?
Returns true if this item has the focus.
-
- (FXIconItem) initialize(text, bigIcon = nil, miniIcon = nil, data = nil)
constructor
Constructor.
-
- (Boolean) selected?
Return true if this item is selected.
-
- (Object) setFocus(focus)
Set the focused state for this item (where focus is either true or false).
-
- (Object) to_s
Return the icon item's text.
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
- (FXIconItem) initialize(text, bigIcon = nil, miniIcon = nil, data = nil)
Constructor
29 30 |
# File 'rdoc-sources/FXIconList.rb', line 29 def initialize(text, bigIcon=nil, miniIcon=nil, data=nil) # :yields: theIconItem end |
Instance Attribute Details
- (Object) bigIcon
Big icon Fox::FXIcon
11 12 13 |
# File 'rdoc-sources/FXIconList.rb', line 11 def bigIcon @bigIcon end |
- (Object) data
Item user data [Object]
17 18 19 |
# File 'rdoc-sources/FXIconList.rb', line 17 def data @data end |
- (Object) draggable=(value) (writeonly)
Indicates whether this item is draggable or not [Boolean]
26 27 28 |
# File 'rdoc-sources/FXIconList.rb', line 26 def draggable=(value) @draggable = value end |
- (Object) enabled=(value) (writeonly)
Indicates whether this item is enabled or not [Boolean]
23 24 25 |
# File 'rdoc-sources/FXIconList.rb', line 23 def enabled=(value) @enabled = value end |
- (Object) miniIcon
Mini icon Fox::FXIcon
14 15 16 |
# File 'rdoc-sources/FXIconList.rb', line 14 def miniIcon @miniIcon end |
- (Object) selected=(value) (writeonly)
Indicates whether this item is selected or not [Boolean]
20 21 22 |
# File 'rdoc-sources/FXIconList.rb', line 20 def selected=(value) @selected = value end |
- (Object) text
Item text [String]
8 9 10 |
# File 'rdoc-sources/FXIconList.rb', line 8 def text @text end |
Instance Method Details
- (Object) <=>(otherItem)
4 5 6 |
# File 'lib/fox16/core.rb', line 4 def <=>(otherItem) text <=> otherItem.text end |
- (Object) create
Create this item
57 |
# File 'rdoc-sources/FXIconList.rb', line 57 def create; end |
- (Object) destroy
Destroy this item
63 |
# File 'rdoc-sources/FXIconList.rb', line 63 def destroy; end |
- (Object) detach
Detach this item
60 |
# File 'rdoc-sources/FXIconList.rb', line 60 def detach; end |
- (Boolean) draggable?
Return true if this item is draggable
48 |
# File 'rdoc-sources/FXIconList.rb', line 48 def draggable? ; end |
- (Boolean) enabled?
Return true if this item is enabled
45 |
# File 'rdoc-sources/FXIconList.rb', line 45 def enabled? ; end |
- (Object) getHeight(iconList)
Return the height of this item
54 |
# File 'rdoc-sources/FXIconList.rb', line 54 def getHeight(iconList); end |
- (Object) getWidth(iconList)
Return the width of this item
51 |
# File 'rdoc-sources/FXIconList.rb', line 51 def getWidth(iconList); end |
- (Boolean) hasFocus?
Returns true if this item has the focus
39 |
# File 'rdoc-sources/FXIconList.rb', line 39 def hasFocus? ; end |
- (Boolean) selected?
Return true if this item is selected
42 |
# File 'rdoc-sources/FXIconList.rb', line 42 def selected? ; end |
- (Object) setFocus(focus)
Set the focused state for this item (where focus is either true or false)
36 |
# File 'rdoc-sources/FXIconList.rb', line 36 def setFocus(focus); end |
- (Object) to_s
Return the icon item's text
33 |
# File 'rdoc-sources/FXIconList.rb', line 33 def to_s; text; end |