Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
MFXListItemIcon Class Reference

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

#include <MFXListItemIcon.h>

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

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
 

Detailed Description

A list item which allows for custom coloring.

Definition at line 28 of file MFXListItemIcon.h.

Constructor & Destructor Documentation

◆ MFXListItemIcon() [1/2]

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.

◆ MFXListItemIcon() [2/2]

MFXListItemIcon::MFXListItemIcon ( )
protected

fox need this

Definition at line 90 of file MFXListItemIcon.cpp.

Member Function Documentation

◆ draw()

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

Here is the caller graph for this function:

◆ getBackGroundColor()

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

Here is the caller graph for this function:

Field Documentation

◆ myBackGroundColor

FXColor MFXListItemIcon::myBackGroundColor
protected

backGround color

Definition at line 47 of file MFXListItemIcon.h.

Referenced by draw(), and getBackGroundColor().


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