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

FX::FXColorList Class Reference

#include <FXColorList.h>

Inheritance diagram for FX::FXColorList:
FX::FXList FX::FXScrollArea FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Member Functions

 FXColorList (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=LIST_BROWSESELECT, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
FXint fillItems (const FXchar **strings, FXColor *colors=NULL, void *ptr=NULL, FXbool notify=FALSE)
FXint insertItem (FXint index, const FXString &text, FXColor color=0, void *ptr=NULL, FXbool notify=FALSE)
FXint appendItem (const FXString &text, FXColor color=0, void *ptr=NULL, FXbool notify=FALSE)
FXint prependItem (const FXString &text, FXColor color=0, void *ptr=NULL, FXbool notify=FALSE)
void setItemColor (FXint index, FXColor color)
FXColor getItemColor (FXint index) const

Detailed Description

A ColorList Widget displays a list of colors.


Constructor & Destructor Documentation

FX::FXColorList::FXColorList ( FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = LIST_BROWSESELECT,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0 
)

Construct a list with initially no items in it.


Member Function Documentation

FXint FX::FXColorList::fillItems ( const FXchar **  strings,
FXColor colors = NULL,
void *  ptr = NULL,
FXbool  notify = FALSE 
)

Fill list by appending color items from array of strings and array of colors.

FXint FX::FXColorList::insertItem ( FXint  index,
const FXString text,
FXColor  color = 0,
void *  ptr = NULL,
FXbool  notify = FALSE 
)

Insert item at index with given text, color, and user-data pointer.

FXint FX::FXColorList::appendItem ( const FXString text,
FXColor  color = 0,
void *  ptr = NULL,
FXbool  notify = FALSE 
)

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

FXint FX::FXColorList::prependItem ( const FXString text,
FXColor  color = 0,
void *  ptr = NULL,
FXbool  notify = FALSE 
)

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

void FX::FXColorList::setItemColor ( FXint  index,
FXColor  color 
)

Change item color.

Return item color.

Copyright © 1997-2005 Jeroen van der Zijp