Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXHeader.h>
Inheritance diagram for FX::FXHeader:
Public Member Functions | |
FXHeader (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=HEADER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
virtual void | create () |
virtual void | detach () |
virtual void | layout () |
FXint | getNumItems () const |
FXint | getTotalSize () const |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setPosition (FXint p) |
FXint | getPosition () const |
FXHeaderItem * | getItem (FXint index) const |
FXint | setItem (FXint index, FXHeaderItem *item, FXbool notify=FALSE) |
FXint | getItemAt (FXint coord) const |
FXint | setItem (FXint index, const FXString &text, FXIcon *icon=NULL, FXint size=0, void *ptr=NULL, FXbool notify=FALSE) |
FXint | insertItem (FXint index, FXHeaderItem *item, FXbool notify=FALSE) |
FXint | insertItem (FXint index, const FXString &text, FXIcon *icon=NULL, FXint size=0, void *ptr=NULL, FXbool notify=FALSE) |
FXint | appendItem (FXHeaderItem *item, FXbool notify=FALSE) |
FXint | appendItem (const FXString &text, FXIcon *icon=NULL, FXint size=0, void *ptr=NULL, FXbool notify=FALSE) |
FXint | prependItem (FXHeaderItem *item, FXbool notify=FALSE) |
FXint | prependItem (const FXString &text, FXIcon *icon=NULL, FXint size=0, void *ptr=NULL, FXbool notify=FALSE) |
void | removeItem (FXint index, FXbool notify=FALSE) |
void | clearItems (FXbool notify=FALSE) |
void | setItemText (FXint index, const FXString &text) |
FXString | getItemText (FXint index) const |
void | setItemIcon (FXint index, FXIcon *icon) |
FXIcon * | getItemIcon (FXint index) const |
void | setItemSize (FXint index, FXint size) |
FXint | getItemSize (FXint index) const |
FXint | getItemOffset (FXint index) const |
void | setItemData (FXint index, void *ptr) |
void * | getItemData (FXint index) const |
void | setArrowDir (FXint index, FXbool dir=MAYBE) |
FXbool | getArrowDir (FXint index) const |
void | setItemJustify (FXint index, FXuint justify) |
FXuint | getItemJustify (FXint index) const |
void | setItemIconPosition (FXint index, FXuint mode) |
FXuint | getItemIconPosition (FXint index) const |
void | setItemPressed (FXint index, FXbool pressed=TRUE) |
FXbool | isItemPressed (FXint index) const |
void | makeItemVisible (FXint index) |
void | updateItem (FXint index) const |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
FXColor | getTextColor () const |
void | setTextColor (FXColor clr) |
void | setHeaderStyle (FXuint style) |
FXuint | getHeaderStyle () const |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXHeader () |
Each caption comprises a label and an optional icon; in addition, an arrow may be shown to indicate whether the items in that column are sorted, and if so, whether they are sorted in increasing or decreasing order. Each caption can be interactively resized. During the resizing, if the HEADER_TRACKING was specified, the header control sends a SEL_CHANGED message to its target, with the message data set to the caption number being resized, of the type FXint. If the HEADER_TRACKING was not specified the SEL_CHANGED message is sent at the end of the resizing operation. Clicking on a caption causes a message of type SEL_COMMAND to be sent to the target, with the message data set to the caption number being clicked. A single click on a split causes a message of type SEL_CLICKED to be sent to the target; a typical response to this message would be to adjust the size of the split to fit the contents displayed underneath it. The contents may be scrolled by calling setPosition().
See also:
|
Construct new header control.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXWindow. |
|
Detach server-side resources.
Reimplemented from FX::FXWindow. |
|
Perform layout.
Reimplemented from FX::FXWindow. |
|
Return number of items.
|
|
Return total size of all items.
|
|
Return default width.
Reimplemented from FX::FXFrame. |
|
Return default height.
Reimplemented from FX::FXFrame. |
|
Set the current position.
|
|
Return the current position.
|
|
Return item at given index.
|
|
Replace the item with a [possibly subclassed] item.
|
|
Return item-index given coordinate offset, or -1 if coordinate is before first item in header, or nitems if coordinate is after last item in header.
|
|
Replace items text, icon, and user-data pointer.
|
|
Insert a new [possibly subclassed] item at the give index.
|
|
Insert item at index with given text, icon, and user-data pointer.
|
|
Append a [possibly subclassed] item to the list.
|
|
Append new item with given text and optional icon, and user-data pointer.
|
|
Prepend a [possibly subclassed] item to the list.
|
|
Prepend new item with given text and optional icon, and user-data pointer.
|
|
Remove item at index.
|
|
Remove all items.
|
|
Change text label for item at index.
|
|
Get text of item at index.
|
|
Change icon of item at index.
|
|
Return icon of item at index.
|
|
Change size of item at index.
|
|
Return size of item at index.
|
|
Compute offset from the left side of item at index.
|
|
Change data of item at index.
|
|
Return data of item at index.
|
|
Change sort direction (FALSE, TRUE, MAYBE).
|
|
Return sort direction (FALSE, TRUE, MAYBE).
|
|
Change item justification.
|
|
Return item justification.
|
|
Change relative position of icon and text of item.
|
|
Return relative icon and text position.
|
|
Changed button item's pressed state.
|
|
Return TRUE if button item is pressed in.
|
|
Scroll to make given item visible.
|
|
Repaint header at index.
|
|
Change text font.
|
|
return text font
|
|
Return text color.
|
|
Change text color.
|
|
Set header style options.
|
|
Get header style options.
|
|
Set the status line help text for this header.
|
|
Get the status line help text for this header.
|
|
Save header to a stream.
Reimplemented from FX::FXFrame. |
|
Load header from a stream.
Reimplemented from FX::FXFrame. |
Copyright © 1997-2004 Jeroen van der Zijp |