![]() |
Eclipse SUMO - Simulation of Urban MObility
|
A list item which allows for custom coloring. More...
#include <MFXListItemIcon.h>
Public Member Functions | |
void | draw (const FXList *list, FXDC &dc, FXint x, FXint y, FXint w, FXint h) |
draw MFXListItemIcon | |
const FXColor & | getBackGroundColor () const |
get background color | |
MFXListItemIcon (const FXString &text, FXIcon *ic, FXColor backGroundColor, void *ptr=NULL) | |
FOX declaration. | |
Protected Member Functions | |
MFXListItemIcon () | |
fox need this | |
Protected Attributes | |
FXColor | myBackGroundColor |
backGround color | |
A list item which allows for custom coloring.
Definition at line 28 of file MFXListItemIcon.h.
MFXListItemIcon::MFXListItemIcon | ( | 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 43 of file MFXListItemIcon.cpp.
|
protected |
fox need this
Definition at line 90 of file MFXListItemIcon.cpp.
void MFXListItemIcon::draw | ( | const FXList * | list, |
FXDC & | dc, | ||
FXint | x, | ||
FXint | y, | ||
FXint | w, | ||
FXint | h | ||
) |
draw MFXListItemIcon
Definition at line 50 of file MFXListItemIcon.cpp.
References ICON_SIZE, ICON_SPACING, myBackGroundColor, and SIDE_SPACING.
Referenced by MFXListIcon::onPaint().
const FXColor & MFXListItemIcon::getBackGroundColor | ( | ) | const |
get background color
Definition at line 85 of file MFXListItemIcon.cpp.
References myBackGroundColor.
Referenced by MFXComboBoxIcon::onListClicked(), MFXComboBoxIcon::setCurrentItem(), and MFXComboBoxIcon::setItem().
|
protected |
backGround color
Definition at line 47 of file MFXListItemIcon.h.
Referenced by draw(), and getBackGroundColor().