Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXFoldingItem Class Reference

Tree list Item. More...

#include <FXFoldingList.h>

Inheritance diagram for FX::FXFoldingItem:

FX::FXObject List of all members.

Public Types

enum  {
  FOCUS = 2,
  OPENED = 8,
  EXPANDED = 16,
  HASITEMS = 32,

Public Member Functions

 FXFoldingItem (const FXString &text, FXIcon *oi=NULL, FXIcon *ci=NULL, void *ptr=NULL)
FXFoldingItemgetParent () const
FXFoldingItemgetNext () const
FXFoldingItemgetPrev () const
FXFoldingItemgetFirst () const
FXFoldingItemgetLast () const
FXFoldingItemgetBelow () const
FXFoldingItemgetAbove () const
FXint getNumChildren () const
virtual void setText (const FXString &txt)
const FXStringgetText () const
virtual void setOpenIcon (FXIcon *icn, FXbool owned=FALSE)
FXIcongetOpenIcon () const
virtual void setClosedIcon (FXIcon *icn, FXbool owned=FALSE)
FXIcongetClosedIcon () 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 ()


class FXFoldingList
class FXDirList

Detailed Description

Tree list Item.

See also:

Member Enumeration Documentation

anonymous enum

Enumeration values:
FOCUS  Selected.
OPENED  Disabled.
HASITEMS  Expanded.
DRAGGABLE  Has virtual subitems.
CLOSEDICONOWNED  Open icon owned by item.

Constructor & Destructor Documentation

FX::FXFoldingItem::FXFoldingItem const FXString text,
FXIcon oi = NULL,
FXIcon ci = NULL,
void *  ptr = NULL


virtual FX::FXFoldingItem::~FXFoldingItem  )  [virtual]

Destroy item and free icons if owned.

Member Function Documentation

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.

virtual void FX::FXFoldingItem::setOpenIcon FXIcon icn,
FXbool  owned = FALSE

Change open icon, deleting old icon if it was owned.

FXIcon* FX::FXFoldingItem::getOpenIcon  )  const [inline]

Get open icon.

virtual void FX::FXFoldingItem::setClosedIcon FXIcon icn,
FXbool  owned = FALSE

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]

Save to stream.

Reimplemented from FX::FXObject.

virtual void FX::FXFoldingItem::load FXStream store  )  [virtual]

Load from stream.

Reimplemented from FX::FXObject.

Friends And Related Function Documentation

friend class FXFoldingList [friend]

friend class FXDirList [friend]

Copyright © 1997-2005 Jeroen van der Zijp