Class Fox::FXHeaderItem
In: rdoc-sources/FXHeader.rb
Parent: FXObject

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

Methods

create   destroy   detach   getHeight   getWidth   new   pressed=   pressed?  

Attributes

arrowDir  [RW]  Sort direction (FALSE, TRUE or MAYBE) [Integer]
data  [RW]  Item’s user data [Object]
icon  [RW]  Item’s icon [FXIcon]
iconPosition  [RW]  Icon position (one of BEFORE, AFTER, ABOVE or BELOW) [Integer]
justification  [RW]  Content justification (one of LEFT, RIGHT, CENTER_X, TOP, BOTTOM or CENTER_Y) [Integer]
pos  [RW]  Current position [Integer]
size  [RW]  Size [Integer]
text  [RW]  Item’s text label [String]

Public Class methods

Construct new item with given text, icon, size, and user-data

Public Instance methods

Create server-side resources

Destroy server-side resources

Detach from server-side resources

Return the item’s content height in the header.

Return the item’s content width in the header.

Set pressed state to true or false.

Return true if in pressed state.

[Validate]