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

os::ScrollBar Class Reference

#include <scrollbar.h>

Inheritance diagram for os::ScrollBar:

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

Public Methods

 ScrollBar (const Rect &cFrame, const char *pzName, Message *pcMsg, int nMin=0, int nMax=INT_MAX, int nOrientation=VERTICAL, uint32 nResizeMask=0)
 ~ScrollBar ()
void SetScrollTarget (View *pcTarget)
ViewGetScrollTarget (void)
status_t Invoke (Message *a_pcMessage=NULL)
virtual void SetValue (int nValue)
void SetValue (int nValue, bool bInvoke)
virtual void MouseMove (const Point &cNewPos, int nCode, uint32 nButtons, Message *pcData)
virtual void MouseDown (const Point &cPosition, uint32 nButtons)
virtual void MouseUp (const Point &cPosition, uint32 nButtons, Message *pcData)
virtual void Paint (const Rect &cUpdateRect)
 Called by the system update "damaged" areas of the view. More...

Point GetPreferredSize (bool bLargest) const
void SetSteps (int nSmall, int nBig)
void GetSteps (int *pnSmall, int *pnBig)
void SetMinMax (int nMin, int nMax)
void SetProportion (float vProp)
float GetProportion (void)

Detailed Description

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


Constructor & Destructor Documentation

ScrollBar::ScrollBar ( const Rect & cFrame,
const char * pzName,
Message * pcMsg,
int nMin = 0,
int nMax = INT_MAX,
int nOrientation = VERTICAL,
uint32 nResizeMask = 0 )
 

ScrollBar::~ScrollBar ( )
 


Member Function Documentation

Point ScrollBar::GetPreferredSize ( bool bLargest ) const [virtual]
 

Reimplemented from os::View.

float os::ScrollBar::GetProportion ( void ) [inline]
 

View * ScrollBar::GetScrollTarget ( void )
 

void os::ScrollBar::GetSteps ( int * pnSmall,
int * pnBig ) [inline]
 

status_t ScrollBar::Invoke ( Message * a_pcMessage = NULL ) [virtual]
 

Reimplemented from os::Control.

void ScrollBar::MouseDown ( const Point & cPosition,
uint32 nButtons ) [virtual]
 

Reimplemented from os::View.

void ScrollBar::MouseMove ( const Point & cNewPos,
int nCode,
uint32 nButtons,
Message * pcData ) [virtual]
 

Reimplemented from os::View.

void ScrollBar::MouseUp ( const Point & cPosition,
uint32 nButtons,
Message * pcData ) [virtual]
 

Reimplemented from os::View.

void ScrollBar::Paint ( const Rect & cUpdateRect ) [virtual]
 

Called by the system update "damaged" areas of the view.

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(s):
Kurt Skauen (kurt@atheos.cx)

Reimplemented from os::View.

void os::ScrollBar::SetMinMax ( int nMin,
int nMax ) [inline]
 

void ScrollBar::SetProportion ( float vProp )
 

void ScrollBar::SetScrollTarget ( View * pcTarget )
 

void os::ScrollBar::SetSteps ( int nSmall,
int nBig ) [inline]
 

void ScrollBar::SetValue ( int nValue,
bool bInvoke )
 

void ScrollBar::SetValue ( int nValue ) [virtual]
 

Reimplemented from os::Control.


The documentation for this class was generated from the following files:
Generated at Sat Apr 7 16:11:40 2001 for AtheOS higlevel API by doxygen1.2.5 written by Dimitri van Heesch, © 1997-2001