![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXTreeList.h>
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 () |
![]() | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
virtual | ~FXObject () |
Friends | |
class | FXTreeList |
class | FXDirList |
anonymous enum |
|
inline |
Constructor.
|
virtual |
Destroy item and free icons if owned.
|
inline |
Get parent item.
|
inline |
Get next sibling item.
|
inline |
Get previous sibling item.
|
inline |
Get first child item.
|
inline |
Get las child item.
FXTreeItem* FX::FXTreeItem::getBelow | ( | ) | const |
Get item below this one in list.
FXTreeItem* FX::FXTreeItem::getAbove | ( | ) | const |
Get item above this one in list.
FXint FX::FXTreeItem::getNumChildren | ( | ) | const |
Get number of children of item.
|
virtual |
Change item label.
|
inline |
Get item label.
Change open icon, deleting the old icon if it was owned.
|
inline |
Get open icon.
Change closed icon, deleting the old icon if it was owned.
|
inline |
Get closed icon.
|
inline |
Change item user data.
|
inline |
Get item user data.
|
virtual |
Make item draw as focused.
|
inline |
Return true if item has focus.
|
virtual |
Select item.
|
inline |
Return true if this item is selected.
|
virtual |
Make item show as open.
|
inline |
Return true if this item is open.
|
virtual |
Expand or collapse item.
|
inline |
Return true if this item is expanded into sub items.
|
virtual |
Enable or disable item.
|
inline |
Return true if this item is enabled.
|
virtual |
Make item draggable.
|
inline |
Return true if this item is draggable.
|
inline |
Return TRUE if subitems, real or imagined.
void FX::FXTreeItem::setHasItems | ( | FXbool | flag | ) |
Change has items flag.
FXbool FX::FXTreeItem::isChildOf | ( | const FXTreeItem * | item | ) | const |
Return true if descendent of parent item.
FXbool FX::FXTreeItem::isParentOf | ( | const FXTreeItem * | item | ) | const |
Return true if ancestor of child item.
|
virtual |
Return width of item as drawn in list.
|
virtual |
Return height of item as drawn in list.
|
virtual |
Create server-side resources.
|
virtual |
Detach server-side resources.
|
virtual |
Destroy server-side resources.
|
virtual |
Save to stream.
Reimplemented from FX::FXObject.
|
virtual |
Load from stream.
Reimplemented from FX::FXObject.
|
friend |
|
friend |
![]() |