24 #ifndef FXSEVENSEGMENT_H 25 #define FXSEVENSEGMENT_H 67 void drawTopSegment(FXDCWindow& dc, FXshort x, FXshort y);
68 void drawLeftTopSegment(FXDCWindow& dc, FXshort x, FXshort y);
69 void drawRightTopSegment(FXDCWindow& dc, FXshort x, FXshort y);
70 void drawMiddleSegment(FXDCWindow& dc, FXshort x, FXshort y);
71 void drawLeftBottomSegment(FXDCWindow& dc, FXshort x, FXshort y);
72 void drawRightBottomSegment(FXDCWindow& dc, FXshort x, FXshort y);
73 void drawBottomSegment(FXDCWindow& dc, FXshort x, FXshort y);
76 void drawSegments(FXDCWindow& dc, FXbool s1, FXbool s2, FXbool s3, FXbool s4, FXbool s5, FXbool s6, FXbool s7);
79 virtual void drawFigure(FXDCWindow& dc, FXchar figure);
82 long onPaint(FXObject*, FXSelector,
void*);
83 long onCmdSetValue(FXObject*, FXSelector,
void*);
84 long onCmdSetIntValue(FXObject*, FXSelector,
void*);
85 long onCmdGetIntValue(FXObject*, FXSelector,
void*);
86 long onCmdSetStringValue(FXObject*, FXSelector,
void*);
87 long onCmdGetStringValue(FXObject*, FXSelector,
void*);
88 long onQueryTip(FXObject*, FXSelector,
void*);
89 long onQueryHelp(FXObject*, FXSelector,
void*);
93 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);
96 void setText(
const FXchar val);
104 void setFgColor(
const FXColor clr);
110 void setBgColor(
const FXColor clr);
116 void setHorizontal(
const FXint len);
122 void setVertical(
const FXint len);
128 void setThickness(
const FXint width);
134 void setGroove(
const FXint width);
140 virtual FXint getDefaultWidth();
143 virtual FXint getDefaultHeight();
146 virtual void save(FXStream& store)
const;
149 virtual void load(FXStream& store);
156 #endif // FXSEVENSEGMENT_H
FXColor getBgColor() const
FXchar getText() const
get the text on the display
FXint getHorizontal() const
virtual ~FXSevenSegment()
dtor
FXint getVertical() const
FXColor getFgColor() const
FXint getThickness() const
MSNet * load(OptionsCont &oc)