SUMO - Simulation of Urban MObility
|
#include <FXLCDLabel.h>
Public Types | |
enum | { ID_SEVENSEGMENT = FXHorizontalFrame::ID_LAST, ID_LAST } |
Public Member Functions | |
virtual void | create () |
create resrouces More... | |
virtual void | destroy () |
destroy resources More... | |
virtual void | detach () |
detach resources More... | |
FXLCDLabel (FXComposite *p, FXuint nfig=1, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=LCDLABEL_NORMAL, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD, FXint hs=DEFAULT_PAD) | |
make me a label More... | |
FXColor | getBgColor () const |
virtual FXint | getDefaultHeight () |
return minimum height More... | |
virtual FXint | getDefaultWidth () |
return minimum width More... | |
FXColor | getFgColor () const |
FXint | getGroove () const |
FXint | getHorizontal () const |
FXString | getText () const |
FXint | getThickness () const |
FXint | getVertical () const |
virtual void | load (FXStream &store) |
load resources More... | |
long | onCmdGetIntValue (FXObject *, FXSelector, void *ptr) |
long | onCmdGetRealValue (FXObject *, FXSelector, void *ptr) |
long | onCmdGetStringValue (FXObject *, FXSelector, void *ptr) |
long | onCmdSetIntValue (FXObject *, FXSelector, void *ptr) |
long | onCmdSetRealValue (FXObject *, FXSelector, void *ptr) |
long | onCmdSetStringValue (FXObject *, FXSelector, void *ptr) |
long | onCmdSetValue (FXObject *, FXSelector, void *ptr) |
long | onPaint (FXObject *, FXSelector, void *) |
long | onQueryHelp (FXObject *, FXSelector, void *ptr) |
long | onQueryTip (FXObject *, FXSelector, void *ptr) |
long | onRedirectEvent (FXObject *, FXSelector, void *ptr) |
virtual void | save (FXStream &store) const |
save resources More... | |
void | setBgColor (FXColor clr) |
set/get background color More... | |
void | setFgColor (FXColor clr) |
set/get forground color More... | |
void | setGroove (const FXint width) |
set/get groove width - must be less than segment width More... | |
void | setHorizontal (const FXint len) |
set/get segment horizontal length - must be more than twice the segment width More... | |
void | setText (FXString lbl) |
manipulate text in LCD label More... | |
void | setThickness (const FXint width) |
set/get segment width - must be less than half the segment length More... | |
void | setVertical (const FXint len) |
set/get segment vertical length - must be more than twice the segment width More... | |
virtual | ~FXLCDLabel () |
dtor More... | |
Protected Member Functions | |
virtual void | drawString (const FXString &lbl) |
The number of shown figuresi, greater than zero. More... | |
FXLCDLabel () | |
Protected Attributes | |
FXString | label |
FXint | nfigures |
The currently shown label. More... | |
A widget which has the seven-segment display used as the drawing object for each letter in the label. Supports display of leading zeros, such as when you need to display a number. Also supports the 'JUSTIFY_RIGHT' option, for right alignment.
Definition at line 56 of file FXLCDLabel.h.
anonymous enum |
Enumerator | |
---|---|
ID_SEVENSEGMENT | |
ID_LAST |
Definition at line 70 of file FXLCDLabel.h.
|
inlineprotected |
Definition at line 61 of file FXLCDLabel.h.
FXEX::FXLCDLabel::FXLCDLabel | ( | FXComposite * | p, |
FXuint | nfig = 1 , |
||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = LCDLABEL_NORMAL , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD , |
||
FXint | hs = DEFAULT_PAD |
||
) |
make me a label
Definition at line 76 of file FXLCDLabel.cpp.
|
virtual |
dtor
Definition at line 89 of file FXLCDLabel.cpp.
|
virtual |
create resrouces
Definition at line 98 of file FXLCDLabel.cpp.
|
virtual |
destroy resources
Definition at line 114 of file FXLCDLabel.cpp.
|
virtual |
detach resources
Definition at line 106 of file FXLCDLabel.cpp.
|
protectedvirtual |
The number of shown figuresi, greater than zero.
Definition at line 292 of file FXLCDLabel.cpp.
References FXEX::LCDLABEL_LEADING_ZEROS, FXEX::FXSevenSegment::setGroove(), FXEX::FXSevenSegment::setHorizontal(), FXEX::FXSevenSegment::setText(), FXEX::FXSevenSegment::setThickness(), and FXEX::FXSevenSegment::setVertical().
FXColor FXEX::FXLCDLabel::getBgColor | ( | ) | const |
Definition at line 138 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getBgColor().
|
virtual |
return minimum height
Definition at line 386 of file FXLCDLabel.cpp.
|
virtual |
return minimum width
Definition at line 381 of file FXLCDLabel.cpp.
FXColor FXEX::FXLCDLabel::getFgColor | ( | ) | const |
Definition at line 122 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getFgColor().
FXint FXEX::FXLCDLabel::getGroove | ( | ) | const |
Definition at line 217 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getGroove().
FXint FXEX::FXLCDLabel::getHorizontal | ( | ) | const |
Definition at line 163 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getHorizontal().
|
inline |
Definition at line 103 of file FXLCDLabel.h.
FXint FXEX::FXLCDLabel::getThickness | ( | ) | const |
Definition at line 199 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getThickness().
FXint FXEX::FXLCDLabel::getVertical | ( | ) | const |
Definition at line 181 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getVertical().
|
virtual |
Definition at line 259 of file FXLCDLabel.cpp.
Definition at line 265 of file FXLCDLabel.cpp.
Definition at line 271 of file FXLCDLabel.cpp.
Definition at line 241 of file FXLCDLabel.cpp.
Definition at line 247 of file FXLCDLabel.cpp.
Definition at line 253 of file FXLCDLabel.cpp.
Definition at line 235 of file FXLCDLabel.cpp.
Definition at line 277 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getBgColor(), and FXEX::FXSevenSegment::getFgColor().
Definition at line 413 of file FXLCDLabel.cpp.
Definition at line 405 of file FXLCDLabel.cpp.
Definition at line 370 of file FXLCDLabel.cpp.
|
virtual |
save resources
Definition at line 391 of file FXLCDLabel.cpp.
void FXEX::FXLCDLabel::setBgColor | ( | FXColor | clr | ) |
set/get background color
Definition at line 144 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getBgColor(), and FXEX::FXSevenSegment::setBgColor().
void FXEX::FXLCDLabel::setFgColor | ( | FXColor | clr | ) |
set/get forground color
Definition at line 128 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getFgColor(), and FXEX::FXSevenSegment::setFgColor().
Referenced by GUIApplicationWindow::onCmdGaming().
void FXEX::FXLCDLabel::setGroove | ( | const FXint | width | ) |
set/get groove width - must be less than segment width
Definition at line 223 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getGroove(), and FXEX::FXSevenSegment::setGroove().
Referenced by GUIApplicationWindow::buildToolBars().
void FXEX::FXLCDLabel::setHorizontal | ( | const FXint | len | ) |
set/get segment horizontal length - must be more than twice the segment width
Definition at line 169 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getHorizontal(), and FXEX::FXSevenSegment::setHorizontal().
Referenced by GUIApplicationWindow::buildToolBars().
void FXEX::FXLCDLabel::setText | ( | FXString | lbl | ) |
manipulate text in LCD label
Definition at line 154 of file FXLCDLabel.cpp.
Referenced by GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::closeAllWindows(), GUIApplicationWindow::handleEvent_SimulationLoaded(), and GUIApplicationWindow::updateTimeLCD().
void FXEX::FXLCDLabel::setThickness | ( | const FXint | width | ) |
set/get segment width - must be less than half the segment length
Definition at line 205 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getThickness(), and FXEX::FXSevenSegment::setThickness().
Referenced by GUIApplicationWindow::buildToolBars().
void FXEX::FXLCDLabel::setVertical | ( | const FXint | len | ) |
set/get segment vertical length - must be more than twice the segment width
Definition at line 187 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getVertical(), and FXEX::FXSevenSegment::setVertical().
Referenced by GUIApplicationWindow::buildToolBars().
|
protected |
Definition at line 63 of file FXLCDLabel.h.
|
protected |
The currently shown label.
Definition at line 64 of file FXLCDLabel.h.