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

FX::FXProgressBar Class Reference

Progress bar widget. More...

#include <FXProgressBar.h>

Inheritance diagram for FX::FXProgressBar:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXProgressBar (FXComposite *p, FXObject *target=NULL, FXSelector sel=0, FXuint opts=PROGRESSBAR_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 void create ()
virtual void detach ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setProgress (FXuint value)
FXuint getProgress () const
void setTotal (FXuint value)
FXuint getTotal () const
void increment (FXuint value)
void hideNumber ()
void showNumber ()
void setBarSize (FXint size)
FXint getBarSize () const
void setBarBGColor (FXColor clr)
FXColor getBarBGColor () const
void setBarColor (FXColor clr)
FXColor getBarColor () const
void setTextColor (FXColor clr)
FXColor getTextColor () const
void setTextAltColor (FXColor clr)
FXColor getTextAltColor () const
void setFont (FXFont *fnt)
FXFontgetFont () const
void setBarStyle (FXuint style)
FXuint getBarStyle () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXProgressBar ()

Detailed Description

Progress bar widget.

See also:


Constructor & Destructor Documentation

FX::FXProgressBar::FXProgressBar FXComposite p,
FXObject target = NULL,
FXSelector  sel = 0,
FXuint  opts = PROGRESSBAR_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
 

Construct progress bar.

virtual FX::FXProgressBar::~FXProgressBar  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXProgressBar::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXWindow.

virtual void FX::FXProgressBar::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXProgressBar::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXProgressBar::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXFrame.

void FX::FXProgressBar::setProgress FXuint  value  ) 
 

Change the amount of progress.

FXuint FX::FXProgressBar::getProgress  )  const [inline]
 

Get current progress.

void FX::FXProgressBar::setTotal FXuint  value  ) 
 

Set total amount of progress.

FXuint FX::FXProgressBar::getTotal  )  const [inline]
 

Return total amount of progrss.

void FX::FXProgressBar::increment FXuint  value  ) 
 

Increment progress by given amount.

void FX::FXProgressBar::hideNumber  ) 
 

Hide progress percentage.

void FX::FXProgressBar::showNumber  ) 
 

Show progress percentage.

void FX::FXProgressBar::setBarSize FXint  size  ) 
 

Change progress bar width.

FXint FX::FXProgressBar::getBarSize  )  const [inline]
 

Return progress bar width.

void FX::FXProgressBar::setBarBGColor FXColor  clr  ) 
 

Change backgroundcolor.

FXColor FX::FXProgressBar::getBarBGColor  )  const [inline]
 

Return background color.

void FX::FXProgressBar::setBarColor FXColor  clr  ) 
 

Change bar color.

FXColor FX::FXProgressBar::getBarColor  )  const [inline]
 

Return bar color.

void FX::FXProgressBar::setTextColor FXColor  clr  ) 
 

Change text color.

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

Return text color.

void FX::FXProgressBar::setTextAltColor FXColor  clr  ) 
 

Change alternate text color shown when bar under text.

FXColor FX::FXProgressBar::getTextAltColor  )  const [inline]
 

Return alternate text color.

void FX::FXProgressBar::setFont FXFont fnt  ) 
 

Set the text font.

FXFont* FX::FXProgressBar::getFont  )  const [inline]
 

Get the text font.

void FX::FXProgressBar::setBarStyle FXuint  style  ) 
 

Change progress bar style.

FXuint FX::FXProgressBar::getBarStyle  )  const
 

Return current progress bar style.

virtual void FX::FXProgressBar::save FXStream store  )  const [virtual]
 

Save progress bar to a stream.

Reimplemented from FX::FXFrame.

virtual void FX::FXProgressBar::load FXStream store  )  [virtual]
 

Load progress bar from a stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2004 Jeroen van der Zijp