![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXTreeList.h>
Inheritance diagram for FX::FXTreeItem:
Public Methods | |
FXTreeItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL) | |
Constructor. | |
FXTreeItem * | getParent () const |
Get parent item. | |
FXTreeItem * | getNext () const |
Get next sibling item. | |
FXTreeItem * | getPrev () const |
Get previous sibling item. | |
FXTreeItem * | getFirst () const |
Get first child item. | |
FXTreeItem * | getLast () const |
Get las child item. | |
FXTreeItem * | getBelow () const |
Get item below this one in list. | |
FXTreeItem * | getAbove () const |
Get item above this one in list. | |
FXint | getNumChildren () const |
Get number of children of item. | |
virtual void | setText (const FXString &txt) |
Change item label. | |
const FXString & | getText () const |
Get item label. | |
virtual void | setOpenIcon (FXIcon *icn) |
Change open icon. | |
FXIcon * | getOpenIcon () const |
Get open icon. | |
virtual void | setClosedIcon (FXIcon *icn) |
Change closed icon. | |
FXIcon * | getClosedIcon () const |
Get closed icon. | |
void | setData (void *ptr) |
Change item user data. | |
void * | getData () const |
Get item user data. | |
virtual void | setFocus (FXbool focus) |
Make item draw as focused. | |
FXbool | hasFocus () const |
Return true if item has focus. | |
virtual void | setSelected (FXbool selected) |
Select item. | |
FXbool | isSelected () const |
Return true if this item is selected. | |
virtual void | setOpened (FXbool opened) |
Make item show as open. | |
FXbool | isOpened () const |
Return true if this item is open. | |
virtual void | setExpanded (FXbool expanded) |
Expand or collapse item. | |
FXbool | isExpanded () const |
Return true if this item is expanded into sub items. | |
virtual void | setEnabled (FXbool enabled) |
Enable or disable item. | |
FXbool | isEnabled () const |
Return true if this item is enabled. | |
virtual void | setDraggable (FXbool draggable) |
Make item draggable. | |
FXbool | isDraggable () const |
Return true if this item is draggable. | |
void | setIconOwned (FXuint owned=(OPENICONOWNED|CLOSEDICONOWNED)) |
Make open and or icon owned by the item. | |
FXuint | isIconOwned () const |
Return open icon and closed icon ownership status. | |
virtual FXint | getWidth (const FXTreeList *list) const |
Return width of item as drawin in list. | |
virtual FXint | getHeight (const FXTreeList *list) const |
Return height of item as drawn in list. | |
virtual void | create () |
Create server-side resources. | |
virtual void | detach () |
Detach server-side resources. | |
virtual void | destroy () |
Destroy server-side resources. | |
virtual void | save (FXStream &store) const |
Save to stream. | |
virtual void | load (FXStream &store) |
Load from stream. | |
virtual | ~FXTreeItem () |
Destroy item and free icons if owned. | |
Friends | |
class | FXTreeList |
class | FXDirList |
See also: