- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UProgressBar Class Reference

A progress bar indicates a progress. More...

#include <uprogressbar.hpp>

Inheritance diagram for ufo::UProgressBar:

ufo::UWidget ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UProgressBar ()
void setMaximum (int max)
int getMaximum () const
void setMinimum (int min)
int getMinimum () const
void setRange (int min, int max)
int getValue () const
void setValue (int value)
virtual std::string getText () const
void setTextVisible (bool vis)
bool isTextVisible () const

Protected Member Functions

virtual UDimension getContentsSize (const UDimension &maxSize) const
UProgressBarModelgetProgressBarModel () const
void updateText ()

Detailed Description

A progress bar indicates a progress.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UProgressBar::UProgressBar  ) 
 

Creates a new progress bar with a minimum of 0, a maximum of 100 and a value of 0


Member Function Documentation

int ufo::UProgressBar::getMaximum  )  const
 

Returns:
The maximum value for value

int ufo::UProgressBar::getMinimum  )  const
 

Returns:
The minimum value for value

virtual std::string ufo::UProgressBar::getText  )  const [virtual]
 

Returns:
A formatted text which is used as label. Usually the percentage.

int ufo::UProgressBar::getValue  )  const
 

Returns:
The progress value.

bool ufo::UProgressBar::isTextVisible  )  const
 

See also:
setTextVisible

void ufo::UProgressBar::setRange int  min,
int  max
 

Sets minimum and maximum in one call.

void ufo::UProgressBar::setTextVisible bool  vis  ) 
 

Sets whether the completed percentage should be displayed.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt