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

#include <MFXTreeListDynamic.h>

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

Public Member Functions

 FXTreeItemDynamic (const FXString &text, FXIcon *oi=nullptr, FXIcon *ci=nullptr, void *ptr=nullptr)
 Constructor.
 
void setTextColor (FXColor clr)
 Change text color.
 

Protected Member Functions

void draw (const FXTreeList *list, FXDC &dc, FXint xx, FXint yy, FXint, FXint hh) const
 draw tree item
 

Private Attributes

FXColor myTextColor = FXRGB(0, 0, 0)
 set text color
 

Detailed Description

Definition at line 29 of file MFXTreeListDynamic.h.

Constructor & Destructor Documentation

◆ FXTreeItemDynamic()

FXTreeItemDynamic::FXTreeItemDynamic ( const FXString &  text,
FXIcon *  oi = nullptr,
FXIcon *  ci = nullptr,
void *  ptr = nullptr 
)

Constructor.

Definition at line 45 of file MFXTreeListDynamic.cpp.

Member Function Documentation

◆ draw()

void FXTreeItemDynamic::draw ( const FXTreeList *  list,
FXDC &  dc,
FXint  xx,
FXint  yy,
FXint  ,
FXint  hh 
) const
protected

draw tree item

Definition at line 57 of file MFXTreeListDynamic.cpp.

References ICON_SPACING, myTextColor, and SIDE_SPACING.

◆ setTextColor()

void FXTreeItemDynamic::setTextColor ( FXColor  clr)

Change text color.

Definition at line 51 of file MFXTreeListDynamic.cpp.

References myTextColor.

Referenced by MFXTreeListDynamic::appendItem(), and MFXTreeListDynamic::prependItem().

Here is the caller graph for this function:

Field Documentation

◆ myTextColor

FXColor FXTreeItemDynamic::myTextColor = FXRGB(0, 0, 0)
private

set text color

Definition at line 44 of file MFXTreeListDynamic.h.

Referenced by draw(), and setTextColor().


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