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

FXProgressBar Class Reference

Progress bar widget.

#include <FXProgressBar.h>

Inheritance diagram for FXProgressBar:

FXFrame FXWindow FXDrawable FXId FXObject List of all members.

Public Methods

 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 void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setProgress (FXuint value)
 Change the amount of progress.

FXuint getProgress () const
 Get current progress.

void setTotal (FXuint value)
 Set total amount of progress.

FXuint getTotal () const
 Return total amount of progrss.

void increment (FXuint value)
 Increment progress by given amount.

void hideNumber ()
 Hide progress percentage.

void showNumber ()
 Show progress percentage.

void setBarSize (FXint size)
 Change progress bar width.

FXint getBarSize () const
 Return progress bar width.

void setBarBGColor (FXColor clr)
 Change backgroundcolor.

FXColor getBarBGColor () const
 Return background color.

void setBarColor (FXColor clr)
 Change bar color.

FXColor getBarColor () const
 Return bar color.

void setTextColor (FXColor clr)
 Change text color.

FXColor getTextColor () const
 Return text color.

void setTextAltColor (FXColor clr)
 Change alternate text color shown when bar under text.

FXColor getTextAltColor () const
 Return alternate text color.

void setFont (FXFont *fnt)
 Set the text font.

FXFontgetFont () const
 Get the text font.

void setBarStyle (FXuint style)
 Change progress bar style.

FXuint getBarStyle () const
 Return current progress bar style.

virtual void save (FXStream &store) const
 Save progress bar to a stream.

virtual void load (FXStream &store)
 Load progress bar from a stream.

virtual ~FXProgressBar ()
 Destructor.