![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXColorList.h>
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 |
A ColorList Widget displays a list of colors.
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.
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.
FXColor FX::FXColorList::getItemColor | ( | FXint | index | ) | const |
Return item color.
![]() |