TImagePopup Class Reference

#include <TImagePopup.h>

Inheritance diagram for TImagePopup:

Inheritance graph
[legend]
Collaboration diagram for TImagePopup:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

 TImagePopup (HIViewRef inControl)
virtual ~TImagePopup ()
virtual ControlKind GetKind ()
virtual OSStatus Initialize (TCarbonEvent &inEvent)
virtual ControlPartCode HitTest (const HIPoint &inWhere)
 Asks your view to return what part of itself (if any) is hit by the point given to it.
virtual void CompatibleDraw (RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing)
virtual OSStatus HiliteChanged (ControlPartCode inOriginalPart, ControlPartCode inCurrentPart, RgnHandle inInvalRgn)
 Just force a redraw.
virtual OSStatus Track (TCarbonEvent &inEvent, ControlPartCode *outPart)
 Will automatically call SetUpTracking() if the result of UseNonblockingTracking() is true.
virtual void TitleChanged ()
virtual void ValueChanged ()
 Here we update the mSelectedItemText member variable and then force the whole control to be redrawn the next time through the event loop.
virtual OSStatus SetData (OSType inTag, ControlPartCode inPart, Size inSize, const void *inPtr)
virtual OSStatus GetData (OSType inTag, ControlPartCode inPart, Size inSize, Size *outSize, void *inPtr)
 Get some data about the view Only 'TVew' is supported.

Detailed Description

This HIView control subclass is basically a popup menu button with support for a background image read from a file. The string value of the selected menu item will be drawn over the background image.

The text will be drawn in the small system font by default. You can change the text style by setting the kControlFontStyleTag data, a structure of type ControlFontStyleRec.


Constructor & Destructor Documentation

TImagePopup::TImagePopup HIViewRef  inControl  )  [protected]
 

TImagePopup::~TImagePopup  )  [protected, virtual]
 


Member Function Documentation

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

Implements TViewNoCompositingCompatible.

OSStatus TImagePopup::GetData OSType  inTag,
ControlPartCode  inPart,
Size  inSize,
Size *  outSize,
void *  inPtr
[protected, virtual]
 

Get some data about the view Only 'TVew' is supported.

It is returning the C++ object.

Reimplemented from TViewNoCompositingCompatible.

ControlKind TImagePopup::GetKind  )  [protected, virtual]
 

OSStatus TImagePopup::HiliteChanged ControlPartCode  inOriginalPart,
ControlPartCode  inCurrentPart,
RgnHandle  inInvalRgn
[protected, virtual]
 

Just force a redraw.

ControlPartCode TImagePopup::HitTest const HIPoint &  inWhere  )  [protected, virtual]
 

Asks your view to return what part of itself (if any) is hit by the point given to it.

The point is in VIEW coordinates, so you should get the view srect to do bounds checking.

Reimplemented from TViewNoCompositingCompatible.

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

OSStatus TImagePopup::SetData OSType  inTag,
ControlPartCode  inPart,
Size  inSize,
const void *  inPtr
[protected, virtual]
 

void TImagePopup::TitleChanged  )  [protected, virtual]
 

OSStatus TImagePopup::Track TCarbonEvent &  inEvent,
ControlPartCode *  outPart
[protected, virtual]
 

Will automatically call SetUpTracking() if the result of UseNonblockingTracking() is true.

If false, this method will return the eventNotHandledErr error code to invoke default mouse tracking.

Reimplemented from TViewNoCompositingCompatible.

void TImagePopup::ValueChanged  )  [protected, virtual]
 

Here we update the mSelectedItemText member variable and then force the whole control to be redrawn the next time through the event loop.


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




Generated on Sat Jul 8 13:09:26 2006 for AUGUI Framework by doxygen1.4.6

hosted on SourceForge.net Logo