TArcSliderControl2 Class Reference

#include <TArcSliderControl2.h>

Inheritance diagram for TArcSliderControl2:

Inheritance graph
[legend]
Collaboration diagram for TArcSliderControl2:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual void SetProperty (OSType propID, double value)
virtual bool GetProperty (OSType propID, double &value)

Protected Member Functions

 TArcSliderControl2 (HIViewRef inControl)
virtual ~TArcSliderControl2 ()
virtual void EraseBackground (CGContextRef inContext, bool inCompositing)
virtual void DrawStaticBackground (RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing)
 The fun part of the control.
virtual void CompatibleDraw (RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing)
 The fun part of the control.
virtual void TitleChanged ()
virtual OSStatus StillTracking (TCarbonEvent &inEvent, HIPoint &from)
 Called during mouse tracking.
virtual OSStatus StartTracking (TCarbonEvent &inEvent, HIPoint &from)
 Called before tracking.
virtual bool Prerender ()

Protected Attributes

float mCenterX
float mCenterY
float mRadius
float mMinAngle
float mMaxAngle
float mAngle
int mOldValue

Constructor & Destructor Documentation

TArcSliderControl2::TArcSliderControl2 HIViewRef  inControl  )  [protected]
 

TArcSliderControl2::~TArcSliderControl2  )  [protected, virtual]
 


Member Function Documentation

void TArcSliderControl2::CompatibleDraw RgnHandle  inLimitRgn,
CGContextRef  inContext,
bool  inCompositing
[protected, virtual]
 

The fun part of the control.

XXX need to test with vertically oriented images

Reimplemented from TSliderControl.

void TArcSliderControl2::DrawStaticBackground RgnHandle  inLimitRgn,
CGContextRef  inContext,
bool  inCompositing
[protected, virtual]
 

The fun part of the control.

XXX need to test with vertically oriented images

Reimplemented from TSliderControl.

void TArcSliderControl2::EraseBackground CGContextRef  inContext,
bool  inCompositing
[protected, virtual]
 

Reimplemented from TViewNoCompositingCompatible.

bool TArcSliderControl2::GetProperty OSType  propID,
double &  value
[virtual]
 

Reimplemented from TSliderControl.

virtual bool TArcSliderControl2::Prerender  )  [inline, protected, virtual]
 

Reimplemented from TViewNoCompositingCompatible.

void TArcSliderControl2::SetProperty OSType  propID,
double  value
[virtual]
 

Reimplemented from TSliderControl.

OSStatus TArcSliderControl2::StartTracking TCarbonEvent &  inEvent,
HIPoint &  from
[protected, virtual]
 

Called before tracking.

The new control value is calculated so that the slider thumb ends up centered on the mouse. This takes into account all of the inset and size values, and also considers the background image and thumb orientation compared to the slider orientation.

Reimplemented from TSliderControl.

OSStatus TArcSliderControl2::StillTracking TCarbonEvent &  inEvent,
HIPoint &  from
[protected, virtual]
 

Called during mouse tracking.

Works basically the same as the StartTracking() member function, except that thus function also calculates the amount of control value change based on how much the mouse position has changed since the last call to StillTracking(). This delta value is used for the control and option key modifiers, for higher precision slider control.

Reimplemented from TSliderControl.

void TArcSliderControl2::TitleChanged  )  [protected, virtual]
 

Reimplemented from TSliderControl.


Member Data Documentation

float TArcSliderControl2::mAngle [protected]
 

float TArcSliderControl2::mCenterX [protected]
 

float TArcSliderControl2::mCenterY [protected]
 

float TArcSliderControl2::mMaxAngle [protected]
 

float TArcSliderControl2::mMinAngle [protected]
 

int TArcSliderControl2::mOldValue [protected]
 

float TArcSliderControl2::mRadius [protected]
 


The documentation for this class was generated from the following files:




Generated on Sat Jul 8 13:08:55 2006 for AUGUI Framework by doxygen1.4.6

hosted on SourceForge.net Logo