#include <CAUGuiSelector.h>
Inheritance diagram for CAUGuiSelector:

Public Member Functions | |
| CAUGuiSelector (CAUGuiMan *theChief, eRect *theWhere, UInt32 theRange, UInt32 theOrientation, CAUGuiGraphic *theForeGround, CAUGuiGraphic *theBackground) | |
| constructor for a CAUGuiSelector control | |
| virtual | ~CAUGuiSelector () |
| destructor | |
| virtual void | draw (CGContextRef context, UInt32 portHeight) |
| receives draws from CAUGuiControlHandler | |
| virtual void | mouseDown (Point *P, bool, bool) |
| receives Mouse clicks from CAUGuiControlHandler | |
| virtual void | mouseTrack (Point *P, bool, bool) |
| receives MouseTracking from CAUGuiControlHandler | |
| virtual void | mouseUp (Point *P, bool, bool) |
| receives Mouse ups from CAUGuiControlHandler | |
| virtual void | setUserProcedure (selectorUserProcedure theProc, void *theUserData) |
| attach a selectorUserProcedure with userdata to the selector | |
There's currently no CAAUParameter attached.
It works much like CAUGuiButton in kRadioMode, but with all states combined in a single widget.
Buttons require AU Parameters, while CAUGuiSelector does not.
The states are evenly spaced inside foreBounds along the orientation axis
You typically install a callback that takes action on changes. For changing layers, you'd usually pass a pointer to a CAUGuiLayeredPane as userdata and the callback simply sets the layer to the chosen value.
In future, it might happen that this class will be extended to deal with indexed AU parameters as well.
Definition at line 46 of file CAUGuiSelector.h.
|
||||||||||||||||||||||||||||
|
constructor for a CAUGuiSelector control
Definition at line 14 of file CAUGuiSelector.cpp. References CAUGuiGraphic::getHeight(), CAUGuiGraphic::getWidth(), eRect::h, kCAUGui_Selector, CAUGuiCtrl::setBounds(), CAUGuiCtrl::setTolerance(), CAUGuiItem::setType(), and eRect::w. |
|
|
destructor
Definition at line 60 of file CAUGuiSelector.cpp. |
|
||||||||||||
|
receives draws from CAUGuiControlHandler
Reimplemented from CAUGuiCtrl. Definition at line 69 of file CAUGuiSelector.cpp. References CAUGuiGraphic::draw(), CAUGuiCtrl::getBounds(), CAUGuiCtrl::getCarbonControl(), CAUGuiCtrl::getForeBounds(), CAUGuiGraphic::getImage(), eRect::to(), and val. |
|
||||||||||||||||
|
receives Mouse clicks from CAUGuiControlHandler
Reimplemented from CAUGuiCtrl. Definition at line 101 of file CAUGuiSelector.cpp. References CAUGuiCtrl::getBounds(), CAUGuiCtrl::getCarbonControl(), CAUGuiCtrl::getForeBounds(), eRect::h, eRect::set(), val, eRect::w, eRect::x, and eRect::y. |
|
||||||||||||||||
|
receives MouseTracking from CAUGuiControlHandler
Reimplemented from CAUGuiCtrl. Definition at line 151 of file CAUGuiSelector.cpp. |
|
||||||||||||||||
|
receives Mouse ups from CAUGuiControlHandler
Reimplemented from CAUGuiCtrl. Definition at line 157 of file CAUGuiSelector.cpp. |
|
||||||||||||
|
attach a selectorUserProcedure with userdata to the selector
Definition at line 163 of file CAUGuiSelector.cpp. References selectorUserProcedure. |
| (c) 2002 - 2003 by Urs Heckmann www.u-he.com |
1.3.6