Class: Fox::FXHeaderItem
Overview
Header item
Alignment hints
RIGHT
-
Align on right
LEFT
-
Align on left
CENTER_X
-
Align centered horizontally (default)
TOP
-
Align on top
BOTTOM
-
Align on bottom
CENTER_Y
-
Align centered vertically (default)
Icon position
BEFORE
-
Icon before the text
AFTER
-
Icon after the text
ABOVE
-
Icon above the text
BELOW
-
Icon below the text
Arrow
ARROW_NONE
-
No arrow
ARROW_UP
-
Arrow pointing up
ARROW_DOWN
-
Arrow pointing down
PRESSED
-
Pressed down
Instance Attribute Summary collapse
-
#arrowDir ⇒ Object
Sort direction (
FALSE
,TRUE
orMAYBE
) [Integer]. -
#data ⇒ Object
Item’s user data [Object].
-
#icon ⇒ Object
Item’s icon FXIcon.
-
#iconPosition ⇒ Object
Icon position (one of
BEFORE
,AFTER
,ABOVE
orBELOW
) [Integer]. -
#justification ⇒ Object
Content justification (one of
LEFT
,RIGHT
,CENTER_X
,TOP
,BOTTOM
orCENTER_Y
) [Integer]. -
#pos ⇒ Object
Current position [Integer].
-
#size ⇒ Object
Size [Integer].
-
#text ⇒ Object
Item’s text label [String].
Instance Method Summary collapse
-
#create ⇒ Object
Create server-side resources.
-
#destroy ⇒ Object
Destroy server-side resources.
-
#detach ⇒ Object
Detach from server-side resources.
-
#getHeight(header) ⇒ Object
Return the item’s content height in the header.
-
#getWidth(header) ⇒ Object
Return the item’s content width in the header.
-
#initialize(text, ic = nil, s = 0, ptr = nil) ⇒ FXHeaderItem
constructor
Construct new item with given text, icon, size, and user-data.
-
#pressed=(p) ⇒ Object
Set pressed state to
true
orfalse
. -
#pressed? ⇒ Boolean
Return
true
if in pressed state. -
#to_s ⇒ Object
Return the header item’s text label.
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(text, ic = nil, s = 0, ptr = nil) ⇒ FXHeaderItem
Construct new item with given text, icon, size, and user-data
57 58 |
# File 'rdoc-sources/FXHeader.rb', line 57 def initialize(text, ic=nil, s=0, ptr=nil) # :yields: theHeaderItem end |
Instance Attribute Details
#arrowDir ⇒ Object
Sort direction (FALSE
, TRUE
or MAYBE
) [Integer]
43 44 45 |
# File 'rdoc-sources/FXHeader.rb', line 43 def arrowDir @arrowDir end |
#data ⇒ Object
Item’s user data [Object]
37 38 39 |
# File 'rdoc-sources/FXHeader.rb', line 37 def data @data end |
#icon ⇒ Object
Item’s icon Fox::FXIcon
34 35 36 |
# File 'rdoc-sources/FXHeader.rb', line 34 def icon @icon end |
#iconPosition ⇒ Object
Icon position (one of BEFORE
, AFTER
, ABOVE
or BELOW
) [Integer]
52 53 54 |
# File 'rdoc-sources/FXHeader.rb', line 52 def iconPosition @iconPosition end |
#justification ⇒ Object
Content justification (one of LEFT
, RIGHT
, CENTER_X
, TOP
, BOTTOM
or CENTER_Y
) [Integer]
49 50 51 |
# File 'rdoc-sources/FXHeader.rb', line 49 def justification @justification end |
#pos ⇒ Object
Current position [Integer]
46 47 48 |
# File 'rdoc-sources/FXHeader.rb', line 46 def pos @pos end |
#size ⇒ Object
Size [Integer]
40 41 42 |
# File 'rdoc-sources/FXHeader.rb', line 40 def size @size end |
#text ⇒ Object
Item’s text label [String]
31 32 33 |
# File 'rdoc-sources/FXHeader.rb', line 31 def text @text end |
Instance Method Details
#create ⇒ Object
Create server-side resources
70 |
# File 'rdoc-sources/FXHeader.rb', line 70 def create; end |
#destroy ⇒ Object
Destroy server-side resources
76 |
# File 'rdoc-sources/FXHeader.rb', line 76 def destroy; end |
#detach ⇒ Object
Detach from server-side resources
73 |
# File 'rdoc-sources/FXHeader.rb', line 73 def detach; end |
#getHeight(header) ⇒ Object
Return the item’s content height in the header.
67 |
# File 'rdoc-sources/FXHeader.rb', line 67 def getHeight(header); end |
#getWidth(header) ⇒ Object
Return the item’s content width in the header.
64 |
# File 'rdoc-sources/FXHeader.rb', line 64 def getWidth(header); end |
#pressed=(p) ⇒ Object
Set pressed state to true
or false
.
79 |
# File 'rdoc-sources/FXHeader.rb', line 79 def pressed=(p); end |
#pressed? ⇒ Boolean
Return true
if in pressed state.
82 |
# File 'rdoc-sources/FXHeader.rb', line 82 def pressed?; end |
#to_s ⇒ Object
Return the header item’s text label
61 |
# File 'rdoc-sources/FXHeader.rb', line 61 def to_s; text; end |