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

os::Spinner Class Reference

#include <spinner.h>

Inheritance diagram for os::Spinner:

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

Public Methods

 Spinner (Rect cFrame, const char *pzName, float vValue, Message *pcMessage, uint32 nResizeMask=CF_FOLLOW_LEFT|CF_FOLLOW_TOP, uint32 nFlags=WID_WILL_DRAW|WID_CLEAR_BACKGROUND)
void SetEnable (bool bEnabled=true)
bool IsEnabled () const
void SetFormat (const char *pzStr)
const std::string& GetFormat () const
void SetValue (float VValue, bool bNotify=true)
void SetMinValue (float vValue)
void SetMaxValue (float vValue)
void SetMinMax (float vMin, float vMax)
void SetStep (float vStep)
void SetScale (float vScale)
void SetMinPreferredSize (int nWidthChars)
void SetMaxPreferredSize (int nWidthChars)
float GetValue () const
float GetMinValue () const
float GetMaxValue () const
float GetStep () const
float GetScale () const
virtual status_t Invoke (Message *pcMessage)
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 AllAttached ()
virtual void HandleMessage (Message *pcMessage)
virtual void Paint (const os::Rect &cUpdateRect)
virtual void FrameSized (const Point &cDelta)
virtual Point GetPreferredSize (bool bLargest) const

Protected Methods

virtual std::string FormatString (float vValue)
virtual float ValueChanged (float vNewValue)

Detailed Description

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


Constructor & Destructor Documentation

Spinner::Spinner ( Rect cFrame,
const char * pzName,
float vValue,
Message * pcMessage,
uint32 nResizeMask = CF_FOLLOW_LEFT | CF_FOLLOW_TOP,
uint32 nFlags = WID_WILL_DRAW | WID_CLEAR_BACKGROUND )
 


Member Function Documentation

void Spinner::AllAttached ( void ) [virtual]
 

Reimplemented from os::View.

std::string Spinner::FormatString ( float vValue ) [protected, virtual]
 

void Spinner::FrameSized ( const Point & cDelta ) [virtual]
 

Reimplemented from os::View.

const std::string & Spinner::GetFormat ( ) const
 

float Spinner::GetMaxValue ( ) const
 

float Spinner::GetMinValue ( ) const
 

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

Reimplemented from os::View.

float Spinner::GetScale ( ) const
 

float Spinner::GetStep ( ) const
 

float Spinner::GetValue ( ) const
 

void Spinner::HandleMessage ( Message * pcMessage ) [virtual]
 

Reimplemented from os::Handler.

status_t Spinner::Invoke ( Message * pcMessage ) [virtual]
 

Reimplemented from os::Invoker.

bool Spinner::IsEnabled ( ) const
 

void Spinner::MouseDown ( const Point & cPosition,
uint32 nButton ) [virtual]
 

Reimplemented from os::View.

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

Reimplemented from os::View.

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

Reimplemented from os::View.

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

void Spinner::SetEnable ( bool bEnabled = true )
 

void Spinner::SetFormat ( const char * pzStr )
 

void Spinner::SetMaxPreferredSize ( int nWidthChars )
 

void Spinner::SetMaxValue ( float VValue )
 

void os::Spinner::SetMinMax ( float vMin,
float vMax ) [inline]
 

void Spinner::SetMinPreferredSize ( int nWidthChars )
 

void Spinner::SetMinValue ( float VValue )
 

void Spinner::SetScale ( float vScale )
 

void Spinner::SetStep ( float vStep )
 

void Spinner::SetValue ( float VValue,
bool bNotify = true )
 

float Spinner::ValueChanged ( float vNewValue ) [protected, virtual]
 


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