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

FX::FX7Segment Class Reference

#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

 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)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setText (const FXString &text)
FXString getText () const
void setTextColor (FXColor clr)
FXColor getTextColor () const
void setCellWidth (FXint w)
FXint getCellWidth () const
void setCellHeight (FXint h)
FXint getCellHeight () const
void setThickness (FXint t)
FXint getThickness () const
void set7SegmentStyle (FXuint style)
FXuint get7SegmentStyle () const
void setJustify (FXuint mode)
FXuint getJustify () const
void setHelpText (const FXString &text)
const FXStringgetHelpText () const
void setTipText (const FXString &text)
const FXStringgetTipText () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)

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.

See also:


Constructor & Destructor Documentation

FX::FX7Segment::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.


Member Function Documentation

virtual FXint FX::FX7Segment::getDefaultWidth ( ) [virtual]

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FX7Segment::getDefaultHeight ( ) [virtual]

Return default height.

Reimplemented from FX::FXFrame.

void FX::FX7Segment::setText ( const FXString text)

Set the text for this label.

FXString FX::FX7Segment::getText ( ) const [inline]

Get the text for this label.

Change text color.

Return text color.

Get/set cell width.

FXint FX::FX7Segment::getCellWidth ( ) const [inline]

Get/set cell height.

Get/set segment thickness.

FXint FX::FX7Segment::getThickness ( ) const [inline]

Change 7 segment style.

Get current 7 segment style.

Set the current text-justification mode.

Get the current text-justification mode.

void FX::FX7Segment::setHelpText ( const FXString text) [inline]

Set the status line help text.

const FXString& FX::FX7Segment::getHelpText ( ) const [inline]

Get the status line help text.

void FX::FX7Segment::setTipText ( const FXString text) [inline]

Set the tool tip message.

const FXString& FX::FX7Segment::getTipText ( ) const [inline]

Get the tool tip message.

virtual void FX::FX7Segment::save ( FXStream store) const [virtual]

Save to a stream.

Reimplemented from FX::FXFrame.

virtual void FX::FX7Segment::load ( FXStream store) [virtual]

Load from a stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2005 Jeroen van der Zijp