#include <TImageButton.h>
Inheritance diagram for TImageButton:
Protected Member Functions | |
TImageButton (HIViewRef inControl) | |
virtual | ~TImageButton () |
virtual ControlKind | GetKind () |
virtual OSStatus | Initialize (TCarbonEvent &inEvent) |
virtual void | CompatibleDraw (RgnHandle inLimitRgn, CGContextRef inContext, bool inCompositing) |
The fun part of the control. | |
virtual OSStatus | ControlHit (ControlPartCode inPart, UInt32 inModifiers) |
virtual OSStatus | Track (TCarbonEvent &inEvent, ControlPartCode *outPart) |
Will automatically call SetUpTracking() if the result of UseNonblockingTracking() is true. | |
virtual OSStatus | HiliteChanged (ControlPartCode inOriginalPart, ControlPartCode inCurrentPart, RgnHandle inInvalRgn) |
virtual void | TitleChanged () |
virtual void | ValueChanged () |
virtual UInt32 | GetBehaviors () |
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. |
This HIView control subclass works like a standard pushbutton, but supports the use of any image or images for its various states. In addition, it supports drawing a text string over the image for a title.
Because the control's actual title is used to configure the image file names, the text to be drawn as the visible title must be set using SetControlData with the data tag kControlEditTextCFStringTag or kControlStaticTextCFStringTag.
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.
|
|
|
|
|
The fun part of the control.
Implements TViewNoCompositingCompatible. |
|
Reimplemented from TViewNoCompositingCompatible. |
|
GetBehaviors Reimplemented from TViewNoCompositingCompatible. |
|
Get some data about the view Only 'TVew' is supported. It is returning the C++ object. Reimplemented from TViewNoCompositingCompatible. |
|
|
|
|
|
|
|
|
|
|
|
Will automatically call If false, this method will return the eventNotHandledErr error code to invoke default mouse tracking. Reimplemented from TViewNoCompositingCompatible. |
|
|