Eclipse SUMO - Simulation of Urban MObility
MFXListItem Class Reference

A list item which allows for custom coloring. More...

#include <MFXIconComboBox.h>

Inheritance diagram for MFXListItem:
[legend]
Collaboration diagram for MFXListItem:
[legend]

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...
 

Detailed Description

A list item which allows for custom coloring.

Definition at line 29 of file MFXIconComboBox.h.

Constructor & Destructor Documentation

◆ MFXListItem() [1/2]

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.

◆ MFXListItem() [2/2]

MFXListItem::MFXListItem ( )
protected

fox need this

Definition at line 119 of file MFXIconComboBox.cpp.

Member Function Documentation

◆ draw()

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.

◆ getBackGroundColor()

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().

Here is the caller graph for this function:

Field Documentation

◆ myBackGroundColor

FXColor MFXListItem::myBackGroundColor
protected

backGround color

Definition at line 48 of file MFXIconComboBox.h.

Referenced by draw(), and getBackGroundColor().


The documentation for this class was generated from the following files: