![]() |
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 () |
Friends | |
class | FXTreeList |
class | FXDirList |
See also:
anonymous enum |
FX::FXTreeItem::FXTreeItem | ( | const FXString & | text, | |
FXIcon * | oi = NULL , |
|||
FXIcon * | ci = NULL , |
|||
void * | ptr = NULL | |||
) | [inline] |
Constructor.
virtual FX::FXTreeItem::~FXTreeItem | ( | ) | [virtual] |
Destroy item and free icons if owned.
FXTreeItem* FX::FXTreeItem::getParent | ( | ) | const [inline] |
Get parent item.
FXTreeItem* FX::FXTreeItem::getNext | ( | ) | const [inline] |
Get next sibling item.
FXTreeItem* FX::FXTreeItem::getPrev | ( | ) | const [inline] |
Get previous sibling item.
FXTreeItem* FX::FXTreeItem::getFirst | ( | ) | const [inline] |
Get first child item.
FXTreeItem* FX::FXTreeItem::getLast | ( | ) | const [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 void FX::FXTreeItem::setText | ( | const FXString & | txt | ) | [virtual] |
Change item label.
const FXString& FX::FXTreeItem::getText | ( | ) | const [inline] |
Get item label.
Change open icon, deleting the old icon if it was owned.
FXIcon* FX::FXTreeItem::getOpenIcon | ( | ) | const [inline] |
Get open icon.
Change closed icon, deleting the old icon if it was owned.
FXIcon* FX::FXTreeItem::getClosedIcon | ( | ) | const [inline] |
Get closed icon.
void FX::FXTreeItem::setData | ( | void * | ptr | ) | [inline] |
Change item user data.
void* FX::FXTreeItem::getData | ( | ) | const [inline] |
Get item user data.
virtual void FX::FXTreeItem::setFocus | ( | FXbool | focus | ) | [virtual] |
Make item draw as focused.
FXbool FX::FXTreeItem::hasFocus | ( | ) | const [inline] |
Return true if item has focus.
virtual void FX::FXTreeItem::setSelected | ( | FXbool | selected | ) | [virtual] |
Select item.
FXbool FX::FXTreeItem::isSelected | ( | ) | const [inline] |
Return true if this item is selected.
virtual void FX::FXTreeItem::setOpened | ( | FXbool | opened | ) | [virtual] |
Make item show as open.
FXbool FX::FXTreeItem::isOpened | ( | ) | const [inline] |
Return true if this item is open.
virtual void FX::FXTreeItem::setExpanded | ( | FXbool | expanded | ) | [virtual] |
Expand or collapse item.
FXbool FX::FXTreeItem::isExpanded | ( | ) | const [inline] |
Return true if this item is expanded into sub items.
virtual void FX::FXTreeItem::setEnabled | ( | FXbool | enabled | ) | [virtual] |
Enable or disable item.
FXbool FX::FXTreeItem::isEnabled | ( | ) | const [inline] |
Return true if this item is enabled.
virtual void FX::FXTreeItem::setDraggable | ( | FXbool | draggable | ) | [virtual] |
Make item draggable.
FXbool FX::FXTreeItem::isDraggable | ( | ) | const [inline] |
Return true if this item is draggable.
FXbool FX::FXTreeItem::hasItems | ( | ) | const [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 FXint FX::FXTreeItem::getWidth | ( | const FXTreeList * | list | ) | const [virtual] |
Return width of item as drawn in list.
virtual FXint FX::FXTreeItem::getHeight | ( | const FXTreeList * | list | ) | const [virtual] |
Return height of item as drawn in list.
virtual void FX::FXTreeItem::create | ( | ) | [virtual] |
Create server-side resources.
virtual void FX::FXTreeItem::detach | ( | ) | [virtual] |
Detach server-side resources.
virtual void FX::FXTreeItem::destroy | ( | ) | [virtual] |
Destroy server-side resources.
virtual void FX::FXTreeItem::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXTreeItem::load | ( | FXStream & | store | ) | [virtual] |
friend class FXTreeList [friend] |
friend class FXDirList [friend] |
Reimplemented in FX::FXDirItem.
![]() |