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 | |
FXColor | getBgColor () const |
virtual FXint | getDefaultHeight () |
Return minimum height. | |
virtual FXint | getDefaultWidth () |
Return minimum width. | |
FXColor | getFgColor () const |
FXint | getGroove () const |
FXint | getHorizontal () const |
FXchar | getText () const |
get the text on the display | |
FXint | getThickness () const |
FXint | getVertical () const |
virtual void | load (FXStream &store) |
load resources | |
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 | |
void | setBgColor (const FXColor clr) |
get/set background color | |
void | setFgColor (const FXColor clr) |
get/set foreground color | |
void | setGroove (const FXint width) |
get/set groove thickness | |
void | setHorizontal (const FXint len) |
get/set horizontal segment length | |
void | setText (const FXchar val) |
set the text on the display | |
void | setThickness (const FXint width) |
get/set segment thickness | |
void | setVertical (const FXint len) |
get/set vertical segment length | |
virtual | ~FXSevenSegment () |
dtor |
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 |
FXint | groove |
FXint | hsl |
FXint | st |
FXchar | value |
FXint | vsl |
Seven-segment (eg LCD/watch style) widget
Definition at line 45 of file FXSevenSegment.h.
|
inlineprotected |
Definition at line 62 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 72 of file FXSevenSegment.cpp.
|
inlinevirtual |
dtor
Definition at line 150 of file FXSevenSegment.h.
|
private |
Definition at line 377 of file FXSevenSegment.cpp.
|
protected |
Definition at line 558 of file FXSevenSegment.cpp.
|
protectedvirtual |
Definition at line 219 of file FXSevenSegment.cpp.
|
protected |
Definition at line 532 of file FXSevenSegment.cpp.
|
protected |
Definition at line 489 of file FXSevenSegment.cpp.
|
protected |
Definition at line 515 of file FXSevenSegment.cpp.
|
protected |
Definition at line 545 of file FXSevenSegment.cpp.
|
protected |
Definition at line 502 of file FXSevenSegment.cpp.
|
protected |
Definition at line 408 of file FXSevenSegment.cpp.
|
protected |
Definition at line 476 of file FXSevenSegment.cpp.
|
inline |
Definition at line 109 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getBgColor(), FXEX::FXLCDLabel::onPaint(), and FXEX::FXLCDLabel::setBgColor().
|
virtual |
Return minimum height.
Definition at line 84 of file FXSevenSegment.cpp.
|
virtual |
Return minimum width.
Definition at line 79 of file FXSevenSegment.cpp.
|
inline |
Definition at line 103 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getFgColor(), FXEX::FXLCDLabel::onPaint(), and FXEX::FXLCDLabel::setFgColor().
|
inline |
Definition at line 133 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getGroove(), and FXEX::FXLCDLabel::setGroove().
|
inline |
Definition at line 115 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getHorizontal(), and FXEX::FXLCDLabel::setHorizontal().
|
inline |
get the text on the display
Definition at line 97 of file FXSevenSegment.h.
|
inline |
Definition at line 127 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getThickness(), and FXEX::FXLCDLabel::setThickness().
|
inline |
Definition at line 121 of file FXSevenSegment.h.
Referenced by FXEX::FXLCDLabel::getVertical(), and FXEX::FXLCDLabel::setVertical().
|
virtual |
Definition at line 177 of file FXSevenSegment.cpp.
References ASCII_ZERO.
Definition at line 203 of file FXSevenSegment.cpp.
Definition at line 190 of file FXSevenSegment.cpp.
References ASCII_ZERO.
Definition at line 210 of file FXSevenSegment.cpp.
Definition at line 168 of file FXSevenSegment.cpp.
Definition at line 156 of file FXSevenSegment.cpp.
Definition at line 602 of file FXSevenSegment.cpp.
Definition at line 594 of file FXSevenSegment.cpp.
|
virtual |
save resources
Definition at line 571 of file FXSevenSegment.cpp.
void FXEX::FXSevenSegment::setBgColor | ( | const FXColor | clr | ) |
get/set background color
Definition at line 107 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setBgColor().
void FXEX::FXSevenSegment::setFgColor | ( | const FXColor | clr | ) |
get/set foreground color
Definition at line 98 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setFgColor().
void FXEX::FXSevenSegment::setGroove | ( | const FXint | width | ) |
get/set groove thickness
Definition at line 146 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 116 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 89 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString().
void FXEX::FXSevenSegment::setThickness | ( | const FXint | width | ) |
get/set segment thickness
Definition at line 136 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 126 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString(), and FXEX::FXLCDLabel::setVertical().
|
private |
Definition at line 52 of file FXSevenSegment.h.
|
private |
Definition at line 51 of file FXSevenSegment.h.
|
private |
Definition at line 56 of file FXSevenSegment.h.
|
private |
Definition at line 53 of file FXSevenSegment.h.
|
private |
Definition at line 55 of file FXSevenSegment.h.
|
private |
Definition at line 50 of file FXSevenSegment.h.
|
private |
Definition at line 54 of file FXSevenSegment.h.