Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

os::ProgressBar Class Reference

#include <progressbar.h>

Inheritance diagram for os::ProgressBar::

os::View os::Handler List of all members.

Public Methods

 ProgressBar (const Rect &cFrame, const std::string &cTitle, orientation eOrientation=HORIZONTAL, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
void SetProgress (float vValue)
float GetProgress () const
virtual Point GetPreferredSize (bool bLargest) const
virtual void AttachedToWindow ()
virtual void Paint (const Rect &cUpdateRect)
 Called by the system update "damaged" areas of the view. More...

virtual void FrameSized (const Point &cDelta)
 Virtual hook called by the system when the view is resized. More...


Detailed Description

Description:
See also:
Author:
Kurt Skauen (kurt@atheos.cx)


Constructor & Destructor Documentation

ProgressBar::ProgressBar const Rect & cFrame,
const std::string & cTitle,
orientation eOrientation = HORIZONTAL,
uint32 nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP,
uint32 nFlags = WID_WILL_DRAW | WID_CLEAR_BACKGROUND
 


Member Function Documentation

void ProgressBar::AttachedToWindow void [virtual]
 

Reimplemented from os::View.

void ProgressBar::FrameSized const Point & cDelta [virtual]
 

Description:
Overload this member if you need to know when the view is resized.
Note:
This member is called after the view is resized. If you need the old size you can subtract the cDelta calue from the current size.
Parameters:
cDelta   The distance the bottom/right corner was moved relative to the upper/left corner.
See also:
FrameMoved(), SetFrame, ResizeBy(), ResizeTo()
Author:
Kurt Skauen (kurt@atheos.cx)

Reimplemented from os::View.

Point ProgressBar::GetPreferredSize bool bLargest const [virtual]
 

Reimplemented from os::View.

float ProgressBar::GetProgress const
 

void ProgressBar::Paint const Rect & cUpdateRect [virtual]
 

Description:
Note:
Warning:
Parameters:
cUpdateRect   A rectangle enclosing all damaged areas. This is just a rough "worst-case", further fine-grained clipping will be performed by the Application Server to avoid updating non-damaged pixels and make the update as fast and flicker-free as possible.

See also:
Invalidate(), Flush()
Author:
Kurt Skauen (kurt@atheos.cx)

Reimplemented from os::View.

void ProgressBar::SetProgress float vValue
 


Generated at Tue Sep 11 15:27:52 2001 for AtheOS higlevel API by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001