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

FXEX::FXTicker Class Reference

Ticker widget; animates a running text like a kind of stock-ticker. More...

#include <FXTicker.h>

Inheritance diagram for FXEX::FXTicker::

FXFrame List of all members.

Public Methods

 FXTicker (FXComposite *p, const FXString &txt, FXuint opts=FRAME_SUNKEN|FRAME_THICK, 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 ()
virtual void create ()
virtual void detach ()
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
void setText (const FXString &txt)
FXString getText () const
void setSpeed (FXint s)
FXint getSpeed () const
void setRate (FXint r)
FXint getRate () const
void setFont (FXFont *fnt)
FXFont * getFont () const
virtual ~FXTicker ()

Detailed Description

Ticker widget; animates a running text like a kind of stock-ticker.

The displayed text, its font, and animation speed can be fully configured.

Definition at line 36 of file FXTicker.h.


Constructor & Destructor Documentation

FXEX::FXTicker::FXTicker (  FXComposite * p,
const FXString & txt,
FXuint opts = FRAME_SUNKEN|FRAME_THICK,
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
) 
 

Ticker widget; draws a text that's running sideways.

virtual FXEX::FXTicker::~FXTicker (  )  [virtual]
 

Clean up.


Member Function Documentation

virtual FXint FXEX::FXTicker::getDefaultWidth (  )  [virtual]
 

Report desired width.

virtual FXint FXEX::FXTicker::getDefaultHeight (  )  [virtual]
 

Report desired height.

virtual void FXEX::FXTicker::create (  )  [virtual]
 

Realize resources for the widget.

virtual void FXEX::FXTicker::detach (  )  [virtual]
 

Detach resources for the widget.

virtual void FXEX::FXTicker::save (  FXStream & store )  const [virtual]
 

save resources.

virtual void FXEX::FXTicker::load (  FXStream & store )  [virtual]
 

load resources.

void FXEX::FXTicker::setText (  const FXString & txt ) 
 

Change the text.

FXString FXEX::FXTicker::getText (  )  const [inline]
 

Return the current text.

Definition at line 76 of file FXTicker.h.

void FXEX::FXTicker::setSpeed (  FXint s ) 
 

Change drawing speed; speed of zero disables the animation.

FXint FXEX::FXTicker::getSpeed (  )  const [inline]
 

Return current speed setting.

Definition at line 82 of file FXTicker.h.

void FXEX::FXTicker::setRate (  FXint r ) 
 

Change movement rate; -ve moves left; +ve moves right.

FXint FXEX::FXTicker::getRate (  )  const [inline]
 

Get movement rate.

Definition at line 88 of file FXTicker.h.

void FXEX::FXTicker::setFont (  FXFont * fnt ) 
 

Set the text font.

FXFont* FXEX::FXTicker::getFont (  )  const [inline]
 

Get the text font.

Definition at line 94 of file FXTicker.h.