TPushButton Class Reference

A pushbutton control with configurable images for each value. More...

#include <TPushButton.h>

Inheritance diagram for TPushButton:

Inheritance graph
[legend]
Collaboration diagram for TPushButton:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 TPushButton (HIViewRef inControl)
virtual ~TPushButton ()
virtual bool UseNonblockingTracking ()
 To enable the non-blocking tracking a subclass must override this method to return true.
virtual OSStatus ControlHit (ControlPartCode inPart, UInt32 inModifiers)
virtual OSStatus StartTracking (TCarbonEvent &inEvent, HIPoint &from)
 Called at the beginning of tracking.
virtual OSStatus StopTracking (TCarbonEvent &inEvent, HIPoint &from)
 Called at the end of tracking.

Protected Attributes

int mValue

Detailed Description

A pushbutton control with configurable images for each value.

This control is similar to the TValuePictButtonControl, except that it does change its value to its max while it's being pushed.


Constructor & Destructor Documentation

TPushButton::TPushButton HIViewRef  inControl  )  [protected]
 

TPushButton::~TPushButton  )  [protected, virtual]
 


Member Function Documentation

OSStatus TPushButton::ControlHit ControlPartCode  inPart,
UInt32  inModifiers
[protected, virtual]
 

Reimplemented from TViewNoCompositingCompatible.

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

Called at the beginning of tracking.

Reimplemented from TValuePictButtonControl.

OSStatus TPushButton::StopTracking TCarbonEvent &  inEvent,
HIPoint &  from
[protected, virtual]
 

Called at the end of tracking.

Our default implementation calls the HitTest() method to determine which part of the control the mouse was over when the button was released. This part code is set in inEvent.

Reimplemented from TValuePictButtonControl.

virtual bool TPushButton::UseNonblockingTracking  )  [inline, protected, virtual]
 

To enable the non-blocking tracking a subclass must override this method to return true.

Reimplemented from TValuePictControl.


Member Data Documentation

int TPushButton::mValue [protected]
 


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




Generated on Sat Jul 8 13:10:45 2006 for AUGUI Framework by doxygen1.4.6

hosted on SourceForge.net Logo