Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FX7Segment Class Reference

Seven-segment (eg LCD/watch style) widget, useful for making indicators and timers. More...

#include <FX7Segment.h>

Inheritance diagram for FX::FX7Segment:
FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject

List of all members.

Public Member Functions

long onPaint (FXObject *, FXSelector, void *)
long onCmdSetValue (FXObject *, FXSelector, void *)
long onCmdSetIntValue (FXObject *, FXSelector, void *)
long onCmdGetIntValue (FXObject *, FXSelector, void *)
long onCmdSetLongValue (FXObject *, FXSelector, void *)
long onCmdGetLongValue (FXObject *, FXSelector, void *)
long onCmdSetRealValue (FXObject *, FXSelector, void *)
long onCmdGetRealValue (FXObject *, FXSelector, void *)
long onCmdSetStringValue (FXObject *, FXSelector, void *)
long onCmdGetStringValue (FXObject *, FXSelector, void *)
long onCmdSetHelp (FXObject *, FXSelector, void *)
long onCmdGetHelp (FXObject *, FXSelector, void *)
long onCmdSetTip (FXObject *, FXSelector, void *)
long onCmdGetTip (FXObject *, FXSelector, void *)
long onQueryHelp (FXObject *, FXSelector, void *)
long onQueryTip (FXObject *, FXSelector, void *)
 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)
 Create a seven segment display.
virtual FXint getDefaultWidth ()
 Return default width.
virtual FXint getDefaultHeight ()
 Return default height.
void setText (const FXString &text)
 Set the text for this label.
FXString getText () const
 Get the text for this label.
void setTextColor (FXColor clr)
 Change text color.
FXColor getTextColor () const
 Return text color.
void setCellWidth (FXint w)
 Get/set cell width.
FXint getCellWidth () const
void setCellHeight (FXint h)
 Get/set cell height.
FXint getCellHeight () const
void setThickness (FXint t)
 Get/set segment thickness.
FXint getThickness () const
void set7SegmentStyle (FXuint style)
 Change 7 segment style.
FXuint get7SegmentStyle () const
 Get current 7 segment style.
void setJustify (FXuint mode)
 Set the current text-justification mode.
FXuint getJustify () const
 Get the current text-justification mode.
void setHelpText (const FXString &text)
 Set the status line help text.
const FXStringgetHelpText () const
 Get the status line help text.
void setTipText (const FXString &text)
 Set the tool tip message.
const FXStringgetTipText () const
 Get the tool tip message.
virtual void save (FXStream &store) const
 Save to a stream.
virtual void load (FXStream &store)
 Load from a stream.

Protected Attributes

FXString label
FXColor textColor
FXint thickness
FXint cellwidth
FXint cellheight
FXString tip
FXString help

Detailed Description

Seven-segment (eg LCD/watch style) widget, useful for making indicators and timers.

Besides numbers, the seven-segment display widget can also display some letters and punctuations.


The documentation for this class was generated from the following file:

Copyright © 1997-2011 Jeroen van der Zijp