81 FX7Segment(
FXComposite* p,
const FXString& text,
FXuint opts=
SEVENSEGMENT_NORMAL,
FXint x=0,
FXint y=0,
FXint w=0,
FXint h=0,
FXint pl=
DEFAULT_PAD,
FXint pr=
DEFAULT_PAD,
FXint pt=
DEFAULT_PAD,
FXint pb=
DEFAULT_PAD);
84 virtual FXint getDefaultWidth();
87 virtual FXint getDefaultHeight();
93 FXString getText()
const {
return label; }
99 FXColor getTextColor()
const {
return textColor; }
102 void setCellWidth(
FXint w);
103 FXint getCellWidth()
const {
return cellwidth; }
106 void setCellHeight(
FXint h);
107 FXint getCellHeight()
const {
return cellheight; }
110 void setThickness(
FXint t);
111 FXint getThickness()
const {
return thickness; }
114 void set7SegmentStyle(
FXuint style);
117 FXuint get7SegmentStyle()
const;
120 void setJustify(
FXuint mode);
123 FXuint getJustify()
const;
126 void setHelpText(
const FXString& text){ help=text; }
129 const FXString& getHelpText()
const {
return help; }
132 void setTipText(
const FXString& text){ tip=text; }
135 const FXString& getTipText()
const {
return tip; }
138 virtual void save(FXStream &store)
const;
141 virtual void load(FXStream &store);
The Frame widget provides borders around some contents.
Definition: FXFrame.h:73
unsigned int FXuint
Definition: fxdefs.h:396
FXuint FXSelector
Association key.
Definition: FXObject.h:53
#define FXAPI
Definition: fxdefs.h:122
Base composite.
Definition: FXComposite.h:35
Draw segments normally.
Definition: FX7Segment.h:39
FXuint FXColor
Definition: fxdefs.h:454
int FXint
Definition: fxdefs.h:397
Seven-segment (eg LCD/watch style) widget, useful for making indicators and timers.
Definition: FX7Segment.h:53
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:166
Window Device Context.
Definition: FXDCWindow.h:52
Draw shadow under the segments.
Definition: FX7Segment.h:40
#define FXDECLARE(classname)
Macro to set up class declaration.
Definition: FXObject.h:92
FXString provides essential string manipulation capabilities.
Definition: FXString.h:33