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

FX::FXIconItem Class Reference

Icon item. More...

#include <FXIconList.h>

Inheritance diagram for FX::FXIconItem:

FX::FXObject FX::FXFileItem List of all members.

Public Types

enum  {
  SELECTED = 1,
  FOCUS = 2,
  DISABLED = 4,
  DRAGGABLE = 8,
  BIGICONOWNED = 16,
  MINIICONOWNED = 32
}

Public Member Functions

 FXIconItem (const FXString &text, FXIcon *bi=NULL, FXIcon *mi=NULL, void *ptr=NULL)
virtual void setText (const FXString &txt)
const FXStringgetText () const
virtual void setBigIcon (FXIcon *icn, FXbool owned=FALSE)
FXIcongetBigIcon () const
virtual void setMiniIcon (FXIcon *icn, FXbool owned=FALSE)
FXIcongetMiniIcon () 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 setEnabled (FXbool enabled)
FXbool isEnabled () const
virtual void setDraggable (FXbool draggable)
FXbool isDraggable () const
virtual FXint getWidth (const FXIconList *list) const
virtual FXint getHeight (const FXIconList *list) const
virtual void create ()
virtual void detach ()
virtual void destroy ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXIconItem ()

Friends

class FXIconList
class FXFileList

Detailed Description

Icon item.

See also:


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
SELECTED  Selected.
FOCUS  Focus.
DISABLED  Disabled.
DRAGGABLE  Draggable.
BIGICONOWNED  Big icon owned by item.
MINIICONOWNED  Mini icon owned by item.


Constructor & Destructor Documentation

FX::FXIconItem::FXIconItem const FXString text,
FXIcon bi = NULL,
FXIcon mi = NULL,
void *  ptr = NULL
[inline]
 

Construct new item with given text, icons, and user-data.

virtual FX::FXIconItem::~FXIconItem  )  [virtual]
 

Destroy item and free icons if owned.


Member Function Documentation

virtual void FX::FXIconItem::setText const FXString txt  )  [virtual]
 

Change item's text label.

const FXString& FX::FXIconItem::getText  )  const [inline]
 

Return item's text label.

virtual void FX::FXIconItem::setBigIcon FXIcon icn,
FXbool  owned = FALSE
[virtual]
 

Change item's big icon, deleting the old icon if it was owned.

FXIcon* FX::FXIconItem::getBigIcon  )  const [inline]
 

Return item's big icon.

virtual void FX::FXIconItem::setMiniIcon FXIcon icn,
FXbool  owned = FALSE
[virtual]
 

Change item's mini icon, deleting the old icon if it was owned.

FXIcon* FX::FXIconItem::getMiniIcon  )  const [inline]
 

Return item's mini icon.

void FX::FXIconItem::setData void *  ptr  )  [inline]
 

Change item's user data.

void* FX::FXIconItem::getData  )  const [inline]
 

Get item's user data.

virtual void FX::FXIconItem::setFocus FXbool  focus  )  [virtual]
 

Make item draw as focused.

FXbool FX::FXIconItem::hasFocus  )  const [inline]
 

Return true if item has focus.

virtual void FX::FXIconItem::setSelected FXbool  selected  )  [virtual]
 

Select item.

FXbool FX::FXIconItem::isSelected  )  const [inline]
 

Return true if this item is selected.

virtual void FX::FXIconItem::setEnabled FXbool  enabled  )  [virtual]
 

Enable or disable item.

FXbool FX::FXIconItem::isEnabled  )  const [inline]
 

Return true if this item is enabled.

virtual void FX::FXIconItem::setDraggable FXbool  draggable  )  [virtual]
 

Make item draggable.

FXbool FX::FXIconItem::isDraggable  )  const [inline]
 

Return true if this item is draggable.

virtual FXint FX::FXIconItem::getWidth const FXIconList list  )  const [virtual]
 

Return width of item as drawn in list.

virtual FXint FX::FXIconItem::getHeight const FXIconList list  )  const [virtual]
 

Return height of item as drawn in list.

virtual void FX::FXIconItem::create  )  [virtual]
 

Create server-side resources.

virtual void FX::FXIconItem::detach  )  [virtual]
 

Detach server-side resources.

virtual void FX::FXIconItem::destroy  )  [virtual]
 

Destroy server-side resources.

virtual void FX::FXIconItem::save FXStream store  )  const [virtual]
 

Save to stream.

Reimplemented from FX::FXObject.

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

Load from stream.

Reimplemented from FX::FXObject.


Friends And Related Function Documentation

friend class FXIconList [friend]
 

friend class FXFileList [friend]
 

Reimplemented in FX::FXFileItem.

Copyright © 1997-2005 Jeroen van der Zijp