![]() |
Eclipse 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 48 of file FXLCDLabel.h.
| anonymous enum |
| Enumerator | |
|---|---|
| ID_SEVENSEGMENT | |
| ID_LAST | |
Definition at line 62 of file FXLCDLabel.h.
|
inlineprotected |
Definition at line 53 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 67 of file FXLCDLabel.cpp.
|
virtual |
dtor
Definition at line 80 of file FXLCDLabel.cpp.
|
virtual |
create resrouces
Definition at line 89 of file FXLCDLabel.cpp.
|
virtual |
destroy resources
Definition at line 105 of file FXLCDLabel.cpp.
|
virtual |
detach resources
Definition at line 97 of file FXLCDLabel.cpp.
|
protectedvirtual |
The number of shown figuresi, greater than zero.
Definition at line 283 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 129 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getBgColor().
|
virtual |
return minimum height
Definition at line 377 of file FXLCDLabel.cpp.
|
virtual |
return minimum width
Definition at line 372 of file FXLCDLabel.cpp.
| FXColor FXEX::FXLCDLabel::getFgColor | ( | ) | const |
Definition at line 113 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getFgColor().
| FXint FXEX::FXLCDLabel::getGroove | ( | ) | const |
Definition at line 208 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getGroove().
| FXint FXEX::FXLCDLabel::getHorizontal | ( | ) | const |
Definition at line 154 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getHorizontal().
|
inline |
Definition at line 95 of file FXLCDLabel.h.
| FXint FXEX::FXLCDLabel::getThickness | ( | ) | const |
Definition at line 190 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getThickness().
| FXint FXEX::FXLCDLabel::getVertical | ( | ) | const |
Definition at line 172 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getVertical().
|
virtual |
load resources
Definition at line 389 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdGetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 250 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdGetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 256 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdGetStringValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 262 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdSetIntValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 232 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdSetRealValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 238 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdSetStringValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 244 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onCmdSetValue | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 226 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onPaint | ( | FXObject * | , |
| FXSelector | , | ||
| void * | ptr | ||
| ) |
Definition at line 268 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getBgColor(), and FXEX::FXSevenSegment::getFgColor().
| long FXEX::FXLCDLabel::onQueryHelp | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 404 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onQueryTip | ( | FXObject * | sender, |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 396 of file FXLCDLabel.cpp.
| long FXEX::FXLCDLabel::onRedirectEvent | ( | FXObject * | , |
| FXSelector | sel, | ||
| void * | ptr | ||
| ) |
Definition at line 361 of file FXLCDLabel.cpp.
|
virtual |
save resources
Definition at line 382 of file FXLCDLabel.cpp.
| void FXEX::FXLCDLabel::setBgColor | ( | FXColor | clr | ) |
set/get background color
Definition at line 135 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 119 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 214 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 160 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 145 of file FXLCDLabel.cpp.
Referenced by GUIApplicationWindow::buildToolBars(), GUIApplicationWindow::checkGamingEvents(), GUIApplicationWindow::checkGamingEventsDRT(), 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 196 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 178 of file FXLCDLabel.cpp.
References FXEX::FXSevenSegment::getVertical(), and FXEX::FXSevenSegment::setVertical().
Referenced by GUIApplicationWindow::buildToolBars().
|
protected |
Definition at line 55 of file FXLCDLabel.h.
|
protected |
The currently shown label.
Definition at line 56 of file FXLCDLabel.h.