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

FX::FXColorItem Class Reference

Color item. More...

#include <FXColorList.h>

Inheritance diagram for FX::FXColorItem:

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

Public Member Functions

 FXColorItem (const FXString &text, FXColor clr, void *ptr=NULL)
void setColor (FXColor clr)
FXColor getColor () const
virtual FXint getWidth (const FXList *list) const
virtual FXint getHeight (const FXList *list) const

Detailed Description

Color item.


Constructor & Destructor Documentation

FX::FXColorItem::FXColorItem const FXString text,
FXColor  clr,
void *  ptr = NULL
[inline]
 

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


Member Function Documentation

void FX::FXColorItem::setColor FXColor  clr  )  [inline]
 

Change item's color.

FXColor FX::FXColorItem::getColor  )  const [inline]
 

Return item's color.

virtual FXint FX::FXColorItem::getWidth const FXList list  )  const [virtual]
 

Return width of item as drawn in list.

Reimplemented from FX::FXListItem.

virtual FXint FX::FXColorItem::getHeight const FXList list  )  const [virtual]
 

Return height of item as drawn in list.

Reimplemented from FX::FXListItem.

Copyright © 1997-2005 Jeroen van der Zijp