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

 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.

void FX::FX7Segment::setTextColor FXColor  clr  ) 
 

Change text color.

FXColor FX::FX7Segment::getTextColor  )  const [inline]
 

Return text color.

void FX::FX7Segment::setCellWidth FXint  w  ) 
 

Get/set cell width.

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

void FX::FX7Segment::setCellHeight FXint  h  ) 
 

Get/set cell height.

FXint FX::FX7Segment::getCellHeight  )  const [inline]
 

void FX::FX7Segment::setThickness FXint  t  ) 
 

Get/set segment thickness.

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

void FX::FX7Segment::set7SegmentStyle FXuint  style  ) 
 

Change 7 segment style.

FXuint FX::FX7Segment::get7SegmentStyle  )  const
 

Get current 7 segment style.

void FX::FX7Segment::setJustify FXuint  mode  ) 
 

Set the current text-justification mode.

FXuint FX::FX7Segment::getJustify  )  const
 

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