Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXList.h>
Inheritance diagram for FX::FXListItem:
Public Types | |
enum | { SELECTED = 1, FOCUS = 2, DISABLED = 4, DRAGGABLE = 8, ICONOWNED = 16 } |
Public Member Functions | |
FXListItem (const FXString &text, FXIcon *ic=NULL, void *ptr=NULL) | |
virtual void | setText (const FXString &txt) |
const FXString & | getText () const |
virtual void | setIcon (FXIcon *icn, FXbool owned=FALSE) |
FXIcon * | getIcon () const |
void | setData (void *ptr) |
void * | getData () const |
virtual void | setFocus (FXbool focus) |
FXbool | hasFocus () const |
virtual void | setSelected (FXbool selected) |
FXbool | isSelected () const |
virtual void | setEnabled (FXbool enabled) |
FXbool | isEnabled () const |
virtual void | setDraggable (FXbool draggable) |
FXbool | isDraggable () const |
virtual FXint | getWidth (const FXList *list) const |
virtual FXint | getHeight (const FXList *list) const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXListItem () |
Friends | |
class | FXList |
See also:
|
|
|
Construct new item with given text, icon, and user-data.
|
|
Destroy item and free icons if owned.
|
|
Change item's text label.
|
|
Return item's text label.
|
|
Change item's icon, deleting the old icon if it was owned.
|
|
Return item's icon.
|
|
Change item's user data.
|
|
Get item's user data.
|
|
Make item draw as focused.
|
|
Return true if item has focus.
|
|
Select item.
|
|
Return true if this item is selected.
|
|
Enable or disable item.
|
|
Return true if this item is enabled.
|
|
Make item draggable.
|
|
Return true if this item is draggable.
|
|
Return width of item as drawn in list.
Reimplemented in FX::FXColorItem. |
|
Return height of item as drawn in list.
Reimplemented in FX::FXColorItem. |
|
Create server-side resources.
|
|
Detach server-side resources.
|
|
Destroy server-side resources.
|
|
Save to stream.
Reimplemented from FX::FXObject. |
|
Load from stream.
Reimplemented from FX::FXObject. |
|
|
Copyright © 1997-2005 Jeroen van der Zijp |