Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXTreeList.h>
Inheritance diagram for FX::FXTreeItem:
Public Types | |
enum | { SELECTED = 1, FOCUS = 2, DISABLED = 4, OPENED = 8, EXPANDED = 16, HASITEMS = 32, DRAGGABLE = 64, OPENICONOWNED = 128, CLOSEDICONOWNED = 256 } |
Public Member Functions | |
FXTreeItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL) | |
FXTreeItem * | getParent () const |
FXTreeItem * | getNext () const |
FXTreeItem * | getPrev () const |
FXTreeItem * | getFirst () const |
FXTreeItem * | getLast () const |
FXTreeItem * | getBelow () const |
FXTreeItem * | getAbove () const |
FXint | getNumChildren () const |
virtual void | setText (const FXString &txt) |
const FXString & | getText () const |
virtual void | setOpenIcon (FXIcon *icn, FXbool owned=FALSE) |
FXIcon * | getOpenIcon () const |
virtual void | setClosedIcon (FXIcon *icn, FXbool owned=FALSE) |
FXIcon * | getClosedIcon () 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 | setOpened (FXbool opened) |
FXbool | isOpened () const |
virtual void | setExpanded (FXbool expanded) |
FXbool | isExpanded () const |
virtual void | setEnabled (FXbool enabled) |
FXbool | isEnabled () const |
virtual void | setDraggable (FXbool draggable) |
FXbool | isDraggable () const |
FXbool | hasItems () const |
void | setHasItems (FXbool flag) |
FXbool | isChildOf (const FXTreeItem *item) const |
FXbool | isParentOf (const FXTreeItem *item) const |
virtual FXint | getWidth (const FXTreeList *list) const |
virtual FXint | getHeight (const FXTreeList *list) const |
virtual void | create () |
virtual void | detach () |
virtual void | destroy () |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXTreeItem () |
Friends | |
class | FXTreeList |
class | FXDirList |
See also:
|
|
|
Constructor.
|
|
Destroy item and free icons if owned.
|
|
Get parent item.
|
|
Get next sibling item.
|
|
Get previous sibling item.
|
|
Get first child item.
|
|
Get las child item.
|
|
Get item below this one in list.
|
|
Get item above this one in list.
|
|
Get number of children of item.
|
|
Change item label.
|
|
Get item label.
|
|
Change open icon, deleting the old icon if it was owned.
|
|
Get open icon.
|
|
Change closed icon, deleting the old icon if it was owned.
|
|
Get closed icon.
|
|
Change item user data.
|
|
Get item user data.
|
|
Make item draw as focused.
|
|
Return true if item has focus.
|
|
Select item.
|
|
Return true if this item is selected.
|
|
Make item show as open.
|
|
Return true if this item is open.
|
|
Expand or collapse item.
|
|
Return true if this item is expanded into sub items.
|
|
Enable or disable item.
|
|
Return true if this item is enabled.
|
|
Make item draggable.
|
|
Return true if this item is draggable.
|
|
Return TRUE if subitems, real or imagined.
|
|
Change has items flag.
|
|
Return true if descendent of parent item.
|
|
Return true if ancestor of child item.
|
|
Return width of item as drawn in list.
|
|
Return height of item as drawn in list.
|
|
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. |
|
|
|
Reimplemented in FX::FXDirItem. |
Copyright © 1997-2005 Jeroen van der Zijp |