TValueTextControl Class Reference

This HIView control class works like the TValuePictControl except that it uses a single background image and draws a text string for each distinct value. More...

#include <TValueTextControl.h>

Inheritance diagram for TValueTextControl:

Inheritance graph
[legend]
Collaboration diagram for TValueTextControl:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 TValueTextControl (HIViewRef inControl)
virtual ~TValueTextControl ()
virtual ControlKind GetKind ()
virtual bool UseNonblockingTracking ()
 To enable the non-blocking tracking a subclass must override this method to return true.
virtual OSStatus Initialize (TCarbonEvent &inEvent)
virtual OSStatus StillTracking (TCarbonEvent &inEvent, HIPoint &from)
 Called whenever the mouse is moving during tracking.
virtual void CompatibleDraw (RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing)
virtual void TitleChanged ()
virtual void ValueChanged ()
virtual UInt32 GetBehaviors ()

Detailed Description

This HIView control class works like the TValuePictControl except that it uses a single background image and draws a text string for each distinct value.

The text strings come from a CFArray of CFStrings set through the SetData method.

The title contains the name of the background image, without the file type extension of .png. It can also have optional configuration values such as the offset for the baseline of the text. Its format is as follows:

filename [leftInset] [bottomInset]

Where leftInset is the inset in pixels from the left side of the image that the text should be drawn and bottomInset in the inset from the bottom edge for the baseline of the text. Values are separated by a single space character.


Constructor & Destructor Documentation

TValueTextControl::TValueTextControl HIViewRef  inControl  )  [protected]
 

TValueTextControl::~TValueTextControl  )  [protected, virtual]
 


Member Function Documentation

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

Implements TViewNoCompositingCompatible.

virtual UInt32 TValueTextControl::GetBehaviors  )  [inline, protected, virtual]
 

GetBehaviors

Reimplemented from TViewNoCompositingCompatible.

ControlKind TValueTextControl::GetKind  )  [protected, virtual]
 

OSStatus TValueTextControl::Initialize TCarbonEvent &  inEvent  )  [protected, virtual]
 

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

Called whenever the mouse is moving during tracking.

Reimplemented from TViewNoCompositingCompatible.

void TValueTextControl::TitleChanged  )  [protected, virtual]
 

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

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

Reimplemented from TViewNoCompositingCompatible.

void TValueTextControl::ValueChanged  )  [protected, virtual]
 


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




Generated on Sat Jul 8 13:11:23 2006 for AUGUI Framework by doxygen1.4.6

hosted on SourceForge.net Logo