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 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 74 of file FXSevenSegment.cpp.
|
inlinevirtual |
dtor
Definition at line 152 of file FXSevenSegment.h.
|
private |
Definition at line 379 of file FXSevenSegment.cpp.
|
protected |
Definition at line 560 of file FXSevenSegment.cpp.
|
protectedvirtual |
Definition at line 221 of file FXSevenSegment.cpp.
|
protected |
Definition at line 534 of file FXSevenSegment.cpp.
|
protected |
Definition at line 491 of file FXSevenSegment.cpp.
|
protected |
Definition at line 517 of file FXSevenSegment.cpp.
|
protected |
Definition at line 547 of file FXSevenSegment.cpp.
|
protected |
Definition at line 504 of file FXSevenSegment.cpp.
|
protected |
Definition at line 410 of file FXSevenSegment.cpp.
|
protected |
Definition at line 478 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 86 of file FXSevenSegment.cpp.
|
virtual |
Return minimum width.
Definition at line 81 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 |
Definition at line 179 of file FXSevenSegment.cpp.
References ASCII_ZERO.
Definition at line 205 of file FXSevenSegment.cpp.
Definition at line 192 of file FXSevenSegment.cpp.
References ASCII_ZERO.
Definition at line 212 of file FXSevenSegment.cpp.
Definition at line 170 of file FXSevenSegment.cpp.
Definition at line 158 of file FXSevenSegment.cpp.
Definition at line 604 of file FXSevenSegment.cpp.
Definition at line 596 of file FXSevenSegment.cpp.
|
virtual |
save resources
Definition at line 573 of file FXSevenSegment.cpp.
void FXEX::FXSevenSegment::setBgColor | ( | const FXColor | clr | ) |
get/set background color
Definition at line 109 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setBgColor().
void FXEX::FXSevenSegment::setFgColor | ( | const FXColor | clr | ) |
get/set foreground color
Definition at line 100 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::setFgColor().
void FXEX::FXSevenSegment::setGroove | ( | const FXint | width | ) |
get/set groove thickness
Definition at line 148 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 118 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 91 of file FXSevenSegment.cpp.
Referenced by FXEX::FXLCDLabel::drawString().
void FXEX::FXSevenSegment::setThickness | ( | const FXint | width | ) |
get/set segment thickness
Definition at line 138 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 128 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.