![]() |
SUMO - Simulation of Urban MObility
|
#include <FXSevenSegment.h>
Public Member Functions | |
FXSevenSegment (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FRAME_NONE, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
create a seven segment display 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 |
FXchar | getText () const |
get the text on the display More... | |
FXint | getThickness () const |
FXint | getVertical () const |
virtual void | load (FXStream &store) |
load resources More... | |
long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
long | onCmdGetStringValue (FXObject *, FXSelector, void *) |
long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
long | onCmdSetStringValue (FXObject *, FXSelector, void *) |
long | onCmdSetValue (FXObject *, FXSelector, void *) |
long | onPaint (FXObject *, FXSelector, void *) |
long | onQueryHelp (FXObject *, FXSelector, void *) |
long | onQueryTip (FXObject *, FXSelector, void *) |
virtual void | save (FXStream &store) const |
save resources More... | |
void | setBgColor (const FXColor clr) |
get/set background color More... | |
void | setFgColor (const FXColor clr) |
get/set foreground color More... | |
void | setGroove (const FXint width) |
get/set groove thickness More... | |
void | setHorizontal (const FXint len) |
get/set horizontal segment length More... | |
void | setText (const FXchar val) |
set the text on the display More... | |
void | setThickness (const FXint width) |
get/set segment thickness More... | |
void | setVertical (const FXint len) |
get/set vertical segment length More... | |
virtual | ~FXSevenSegment () |
dtor More... | |
Protected Member Functions | |
void | drawBottomSegment (FXDCWindow &dc, FXshort x, FXshort y) |
virtual void | drawFigure (FXDCWindow &dc, FXchar figure) |
void | drawLeftBottomSegment (FXDCWindow &dc, FXshort x, FXshort y) |
void | drawLeftTopSegment (FXDCWindow &dc, FXshort x, FXshort y) |
void | drawMiddleSegment (FXDCWindow &dc, FXshort x, FXshort y) |
void | drawRightBottomSegment (FXDCWindow &dc, FXshort x, FXshort y) |
void | drawRightTopSegment (FXDCWindow &dc, FXshort x, FXshort y) |
void | drawSegments (FXDCWindow &dc, FXbool s1, FXbool s2, FXbool s3, FXbool s4, FXbool s5, FXbool s6, FXbool s7) |
void | drawTopSegment (FXDCWindow &dc, FXshort x, FXshort y) |
FXSevenSegment () | |
Private Member Functions | |
void | checkSize () |
Private Attributes | |
FXColor | bgcolor |
FXColor | fgcolor |
FXshort | groove |
FXshort | hsl |
FXshort | st |
FXchar | value |
FXshort | vsl |
Seven-segment (eg LCD/watch style) widget
Definition at line 47 of file FXSevenSegment.h.
|
inlineprotected |
Definition at line 64 of file FXSevenSegment.h.
FXEX::FXSevenSegment::FXSevenSegment | ( | FXComposite * | p, |
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = FRAME_NONE , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD |
||
) |
create a seven segment display
Definition at line 71 of file FXSevenSegment.cpp.
|
inlinevirtual |
dtor
Definition at line 152 of file FXSevenSegment.h.
|
private |
Definition at line 376 of file FXSevenSegment.cpp.
|
protected |
Definition at line 557 of file FXSevenSegment.cpp.
|
protectedvirtual |
Definition at line 218 of file FXSevenSegment.cpp.
|
protected |
Definition at line 531 of file FXSevenSegment.cpp.
|
protected |
Definition at line 488 of file FXSevenSegment.cpp.
|
protected |
Definition at line 514 of file FXSevenSegment.cpp.
|
protected |
Definition at line 544 of file FXSevenSegment.cpp.
|
protected |
Definition at line 501 of file FXSevenSegment.cpp.
|
protected |
Definition at line 407 of file FXSevenSegment.cpp.
|
protected |
Definition at line 475 of file FXSevenSegment.cpp.
|
inline |
Definition at line 111 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getBgColor(), FXEX::FXLCDLabel::onPaint(), and FXEX::FXLCDLabel::setBgColor().
|
virtual |
Return minimum height.
Definition at line 83 of file FXSevenSegment.cpp.
|
virtual |
Return minimum width.
Definition at line 78 of file FXSevenSegment.cpp.
|
inline |
Definition at line 105 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getFgColor(), FXEX::FXLCDLabel::onPaint(), and FXEX::FXLCDLabel::setFgColor().
|
inline |
Definition at line 135 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getGroove(), and FXEX::FXLCDLabel::setGroove().
|
inline |
Definition at line 117 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getHorizontal(), and FXEX::FXLCDLabel::setHorizontal().
|
inline |
get the text on the display
Definition at line 99 of file FXSevenSegment.h.
|
inline |
Definition at line 129 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getThickness(), and FXEX::FXLCDLabel::setThickness().
|
inline |
Definition at line 123 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getVertical(), and FXEX::FXLCDLabel::setVertical().
|
virtual |
load resources
Definition at line 581 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onCmdGetIntValue | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 176 of file FXSevenSegment.cpp.
References ASCII_ZERO.
long FXEX::FXSevenSegment::onCmdGetStringValue | ( | FXObject * | sender, |
FXSelector | , | ||
void * | |||
) |
Definition at line 202 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onCmdSetIntValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 189 of file FXSevenSegment.cpp.
References ASCII_ZERO.
long FXEX::FXSevenSegment::onCmdSetStringValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 209 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onCmdSetValue | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 167 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onPaint | ( | FXObject * | , |
FXSelector | , | ||
void * | ptr | ||
) |
Definition at line 155 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onQueryHelp | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 601 of file FXSevenSegment.cpp.
long FXEX::FXSevenSegment::onQueryTip | ( | FXObject * | sender, |
FXSelector | sel, | ||
void * | ptr | ||
) |
Definition at line 593 of file FXSevenSegment.cpp.
|
virtual |
save resources
Definition at line 570 of file FXSevenSegment.cpp.
void FXEX::FXSevenSegment::setBgColor | ( | const FXColor | clr | ) |
get/set background color
Definition at line 106 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setBgColor().
void FXEX::FXSevenSegment::setFgColor | ( | const FXColor | clr | ) |
get/set foreground color
Definition at line 97 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setFgColor().
void FXEX::FXSevenSegment::setGroove | ( | const FXint | width | ) |
get/set groove thickness
Definition at line 145 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString(), and FXEX::FXLCDLabel::setGroove().
void FXEX::FXSevenSegment::setHorizontal | ( | const FXint | len | ) |
get/set horizontal segment length
Definition at line 115 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString(), and FXEX::FXLCDLabel::setHorizontal().
void FXEX::FXSevenSegment::setText | ( | const FXchar | val | ) |
set the text on the display
Definition at line 88 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString().
void FXEX::FXSevenSegment::setThickness | ( | const FXint | width | ) |
get/set segment thickness
Definition at line 135 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString(), and FXEX::FXLCDLabel::setThickness().
void FXEX::FXSevenSegment::setVertical | ( | const FXint | len | ) |
get/set vertical segment length
Definition at line 125 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString(), and FXEX::FXLCDLabel::setVertical().
|
private |
Definition at line 54 of file FXSevenSegment.h.
|
private |
Definition at line 53 of file FXSevenSegment.h.
|
private |
Definition at line 58 of file FXSevenSegment.h.
|
private |
Definition at line 55 of file FXSevenSegment.h.
|
private |
Definition at line 57 of file FXSevenSegment.h.
|
private |
Definition at line 52 of file FXSevenSegment.h.
|
private |
Definition at line 56 of file FXSevenSegment.h.