![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A list item which allows for custom coloring. More...
#include <MFXIconComboBox.h>
Public Member Functions | |
void | draw (const FXList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) |
draw MFXListItem More... | |
const FXColor & | getBackGroundColor () const |
get background color More... | |
MFXListItem (const FXString &text, FXIcon *ic, FXColor backGroundColor, void *ptr=NULL) | |
FOX declaration. More... | |
Protected Member Functions | |
MFXListItem () | |
fox need this More... | |
Protected Attributes | |
FXColor | myBackGroundColor |
backGround color More... | |
A list item which allows for custom coloring.
Definition at line 29 of file MFXIconComboBox.h.
MFXListItem::MFXListItem | ( | const FXString & | text, |
FXIcon * | ic, | ||
FXColor | backGroundColor, | ||
void * | ptr = NULL |
||
) |
FOX declaration.
Construct new item with given text, icon, and user-data
Definition at line 69 of file MFXIconComboBox.cpp.
|
protected |
fox need this
Definition at line 119 of file MFXIconComboBox.cpp.
void MFXListItem::draw | ( | const FXList * | list, |
FXDC & | dc, | ||
FXint | x, | ||
FXint | y, | ||
FXint | w, | ||
FXint | h | ||
) |
draw MFXListItem
Definition at line 76 of file MFXIconComboBox.cpp.
References ICON_SPACING, myBackGroundColor, and SIDE_SPACING.
const FXColor & MFXListItem::getBackGroundColor | ( | ) | const |
get background color
Definition at line 114 of file MFXIconComboBox.cpp.
References myBackGroundColor.
Referenced by MFXIconComboBox::onListClicked(), MFXIconComboBox::setCurrentItem(), and MFXIconComboBox::setItem().
|
protected |
backGround color
Definition at line 48 of file MFXIconComboBox.h.
Referenced by draw(), and getBackGroundColor().