Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXList.h>
Inheritance diagram for FX::FXList:
Public Member Functions | |
FXList (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=LIST_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
virtual void | create () |
virtual void | detach () |
virtual void | layout () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
virtual FXint | getContentWidth () |
virtual FXint | getContentHeight () |
virtual void | recalc () |
virtual FXbool | canFocus () const |
virtual void | setFocus () |
virtual void | killFocus () |
FXint | getNumItems () const |
FXint | getNumVisible () const |
void | setNumVisible (FXint nvis) |
FXListItem * | getItem (FXint index) const |
FXint | setItem (FXint index, FXListItem *item, FXbool notify=FALSE) |
FXint | setItem (FXint index, const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXint | insertItem (FXint index, FXListItem *item, FXbool notify=FALSE) |
FXint | insertItem (FXint index, const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXint | appendItem (FXListItem *item, FXbool notify=FALSE) |
FXint | appendItem (const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXint | prependItem (FXListItem *item, FXbool notify=FALSE) |
FXint | prependItem (const FXString &text, FXIcon *icon=NULL, void *ptr=NULL, FXbool notify=FALSE) |
FXint | moveItem (FXint newindex, FXint oldindex, FXbool notify=FALSE) |
void | removeItem (FXint index, FXbool notify=FALSE) |
void | clearItems (FXbool notify=FALSE) |
FXint | getItemWidth (FXint index) const |
FXint | getItemHeight (FXint index) const |
FXint | getItemAt (FXint x, FXint y) const |
FXint | hitItem (FXint index, FXint x, FXint y) const |
FXint | findItem (const FXString &text, FXint start=-1, FXuint flags=SEARCH_FORWARD|SEARCH_WRAP) const |
void | makeItemVisible (FXint index) |
void | setItemText (FXint index, const FXString &text) |
FXString | getItemText (FXint index) const |
void | setItemIcon (FXint index, FXIcon *icon) |
FXIcon * | getItemIcon (FXint index) const |
void | setItemData (FXint index, void *ptr) |
void * | getItemData (FXint index) const |
FXbool | isItemSelected (FXint index) const |
FXbool | isItemCurrent (FXint index) const |
FXbool | isItemVisible (FXint index) const |
FXbool | isItemEnabled (FXint index) const |
void | updateItem (FXint index) const |
FXbool | enableItem (FXint index) |
FXbool | disableItem (FXint index) |
virtual FXbool | selectItem (FXint index, FXbool notify=FALSE) |
virtual FXbool | deselectItem (FXint index, FXbool notify=FALSE) |
virtual FXbool | toggleItem (FXint index, FXbool notify=FALSE) |
virtual FXbool | extendSelection (FXint index, FXbool notify=FALSE) |
virtual FXbool | killSelection (FXbool notify=FALSE) |
virtual void | setCurrentItem (FXint index, FXbool notify=FALSE) |
FXint | getCurrentItem () const |
void | setAnchorItem (FXint index) |
FXint | getAnchorItem () const |
FXint | getCursorItem () const |
void | sortItems () |
FXListSortFunc | getSortFunc () const |
void | setSortFunc (FXListSortFunc func) |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
FXColor | getTextColor () const |
void | setTextColor (FXColor clr) |
FXColor | getSelBackColor () const |
void | setSelBackColor (FXColor clr) |
FXColor | getSelTextColor () const |
void | setSelTextColor (FXColor clr) |
FXuint | getListStyle () const |
void | setListStyle (FXuint style) |
void | setHelpText (const FXString &text) |
FXString | getHelpText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXList () |
Static Public Member Functions | |
FXint | ascending (const FXListItem *a, const FXListItem *b) |
FXint | descending (const FXListItem *a, const FXListItem *b) |
FXint | ascendingCase (const FXListItem *a, const FXListItem *b) |
FXint | descendingCase (const FXListItem *a, const FXListItem *b) |
When an item's selected state changes, the list sends a SEL_SELECTED or SEL_DESELECTED message. A change of the current item is signified by the SEL_CHANGED message. The list sends SEL_COMMAND messages when the user clicks on an item, and SEL_CLICKED, SEL_DOUBLECLICKED, and SEL_TRIPLECLICKED when the user clicks once, twice, or thrice, respectively. When items are added, replaced, or removed, the list sends messages of the type SEL_INSERTED, SEL_REPLACED, or SEL_DELETED. In each of these cases, the index to the item, if any, is passed in the 3rd argument of the message.
See also:
|
Construct a list with initially no items in it.
|
|
Destructor.
|
|
Create server-side resources.
Reimplemented from FX::FXComposite. |
|
Detach server-side resources.
Reimplemented from FX::FXComposite. |
|
Perform layout.
Reimplemented from FX::FXScrollArea. |
|
Return default width.
Reimplemented from FX::FXScrollArea. |
|
Return default height.
Reimplemented from FX::FXScrollArea. |
|
Compute and return content width.
Reimplemented from FX::FXScrollArea. |
|
Return content height.
Reimplemented from FX::FXScrollArea. |
|
Recalculate layout.
Reimplemented from FX::FXWindow. |
|
List widget can receive focus.
Reimplemented from FX::FXWindow. |
|
Move the focus to this window.
Reimplemented from FX::FXWindow. |
|
Remove the focus from this window.
Reimplemented from FX::FXWindow. |
|
Return the number of items in the list.
|
|
Return number of visible items.
|
|
Change the number of visible items.
|
|
Return the item at the given index.
|
|
Replace the item with a [possibly subclassed] item.
|
|
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.
|
|
Move item from oldindex to newindex.
|
|
Remove item from list.
|
|
Remove all items from list.
|
|
Return item width.
|
|
Return item height.
|
|
Return index of item at x,y, if any.
|
|
Return item hit code: 0 no hit; 1 hit the icon; 2 hit the text.
|
|
Search items for item by name, starting from start item; the flags argument controls the search direction, and case sensitivity.
|
|
Scroll to bring item into view.
|
|
Change item text.
|
|
Return item text.
|
|
Change item icon.
|
|
Return item icon, if any.
|
|
Change item user-data pointer.
|
|
Return item user-data pointer.
|
|
Return TRUE if item is selected.
|
|
Return TRUE if item is current.
|
|
Return TRUE if item is visible.
|
|
Return TRUE if item is enabled.
|
|
Repaint item.
|
|
Enable item.
|
|
Disable item.
|
|
Select item.
|
|
Deselect item.
|
|
Toggle item selection state.
|
|
Extend selection from anchor item to index.
|
|
Deselect all items.
|
|
Change current item.
|
|
Return current item, if any.
|
|
Change anchor item.
|
|
Return anchor item, if any.
|
|
Get item under the cursor, if any.
|
|
Sort items using current sort function.
|
|
Return sort function.
|
|
Change sort function.
|
|
Change text font.
|
|
Return text font.
|
|
Return normal text color.
|
|
Change normal text color.
|
|
Return selected text background.
|
|
Change selected text background.
|
|
Return selected text color.
|
|
Change selected text color.
|
|
Return list style.
|
|
Change list style.
|
|
Set the status line help text for this list.
|
|
Get the status line help text for this list.
|
|
Save list to a stream.
Reimplemented from FX::FXWindow. |
|
Load list from a stream.
Reimplemented from FX::FXWindow. |
Copyright © 1997-2004 Jeroen van der Zijp |