![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXFoldingList.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 | |
| FXFoldingItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL) | |
| FXFoldingItem * | getParent () const |
| FXFoldingItem * | getNext () const |
| FXFoldingItem * | getPrev () const |
| FXFoldingItem * | getFirst () const |
| FXFoldingItem * | getLast () const |
| FXFoldingItem * | getBelow () const |
| FXFoldingItem * | 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 FXFoldingItem *item) const |
| FXbool | isParentOf (const FXFoldingItem *item) const |
| virtual FXint | getWidth (const FXFoldingList *list) const |
| virtual FXint | getHeight (const FXFoldingList *list) const |
| virtual void | create () |
| virtual void | detach () |
| virtual void | destroy () |
| virtual void | save (FXStream &store) const |
| virtual void | load (FXStream &store) |
| virtual | ~FXFoldingItem () |
Friends | |
| class | FXFoldingList |
| class | FXDirList |
See also:
| anonymous enum |
| FX::FXFoldingItem::FXFoldingItem | ( | const FXString & | text, | |
| FXIcon * | oi = NULL, |
|||
| FXIcon * | ci = NULL, |
|||
| void * | ptr = NULL | |||
| ) | [inline] |
Constructor.
| virtual FX::FXFoldingItem::~FXFoldingItem | ( | ) | [virtual] |
Destroy item and free icons if owned.
| FXFoldingItem* FX::FXFoldingItem::getParent | ( | ) | const [inline] |
Get parent item.
| FXFoldingItem* FX::FXFoldingItem::getNext | ( | ) | const [inline] |
Get next sibling item.
| FXFoldingItem* FX::FXFoldingItem::getPrev | ( | ) | const [inline] |
Get previous sibling item.
| FXFoldingItem* FX::FXFoldingItem::getFirst | ( | ) | const [inline] |
Get first child item.
| FXFoldingItem* FX::FXFoldingItem::getLast | ( | ) | const [inline] |
Get las child item.
| FXFoldingItem* FX::FXFoldingItem::getBelow | ( | ) | const |
Get item below this one in list.
| FXFoldingItem* FX::FXFoldingItem::getAbove | ( | ) | const |
Get item above this one in list.
| FXint FX::FXFoldingItem::getNumChildren | ( | ) | const |
Get number of children of item.
| virtual void FX::FXFoldingItem::setText | ( | const FXString & | txt | ) | [virtual] |
Change item label.
| const FXString& FX::FXFoldingItem::getText | ( | ) | const [inline] |
Get item label.
Change open icon, deleting old icon if it was owned.
| FXIcon* FX::FXFoldingItem::getOpenIcon | ( | ) | const [inline] |
Get open icon.
Change closed icon, deleting old icon if it was owned.
| FXIcon* FX::FXFoldingItem::getClosedIcon | ( | ) | const [inline] |
Get closed icon.
| void FX::FXFoldingItem::setData | ( | void * | ptr | ) | [inline] |
Change item user data.
| void* FX::FXFoldingItem::getData | ( | ) | const [inline] |
Get item user data.
| virtual void FX::FXFoldingItem::setFocus | ( | FXbool | focus | ) | [virtual] |
Make item draw as focused.
| FXbool FX::FXFoldingItem::hasFocus | ( | ) | const [inline] |
Return true if item has focus.
| virtual void FX::FXFoldingItem::setSelected | ( | FXbool | selected | ) | [virtual] |
Select item.
| FXbool FX::FXFoldingItem::isSelected | ( | ) | const [inline] |
Return true if this item is selected.
| virtual void FX::FXFoldingItem::setOpened | ( | FXbool | opened | ) | [virtual] |
Make item show as open.
| FXbool FX::FXFoldingItem::isOpened | ( | ) | const [inline] |
Return true if this item is open.
| virtual void FX::FXFoldingItem::setExpanded | ( | FXbool | expanded | ) | [virtual] |
Expand or collapse item.
| FXbool FX::FXFoldingItem::isExpanded | ( | ) | const [inline] |
Return true if this item is expanded into sub items.
| virtual void FX::FXFoldingItem::setEnabled | ( | FXbool | enabled | ) | [virtual] |
Enable or disable item.
| FXbool FX::FXFoldingItem::isEnabled | ( | ) | const [inline] |
Return true if this item is enabled.
| virtual void FX::FXFoldingItem::setDraggable | ( | FXbool | draggable | ) | [virtual] |
Make item draggable.
| FXbool FX::FXFoldingItem::isDraggable | ( | ) | const [inline] |
Return true if this item is draggable.
| FXbool FX::FXFoldingItem::hasItems | ( | ) | const [inline] |
Return TRUE if subitems, real or imagined.
| void FX::FXFoldingItem::setHasItems | ( | FXbool | flag | ) |
Change has items flag.
| FXbool FX::FXFoldingItem::isChildOf | ( | const FXFoldingItem * | item | ) | const |
Return true if descendent of parent item.
| FXbool FX::FXFoldingItem::isParentOf | ( | const FXFoldingItem * | item | ) | const |
Return true if ancestor of child item.
| virtual FXint FX::FXFoldingItem::getWidth | ( | const FXFoldingList * | list | ) | const [virtual] |
Return width of item as drawn in list.
| virtual FXint FX::FXFoldingItem::getHeight | ( | const FXFoldingList * | list | ) | const [virtual] |
Return height of item as drawn in list.
| virtual void FX::FXFoldingItem::create | ( | ) | [virtual] |
Create server-side resources.
| virtual void FX::FXFoldingItem::detach | ( | ) | [virtual] |
Detach server-side resources.
| virtual void FX::FXFoldingItem::destroy | ( | ) | [virtual] |
Destroy server-side resources.
| virtual void FX::FXFoldingItem::save | ( | FXStream & | store | ) | const [virtual] |
| virtual void FX::FXFoldingItem::load | ( | FXStream & | store | ) | [virtual] |
friend class FXFoldingList [friend] |
friend class FXDirList [friend] |
|
|