#include <CAUGui.h>
Inheritance diagram for CAUGuiCtrl:

Public Member Functions | |
| CAUGuiCtrl (CAUGuiMan *theCAUGuiMan, CAAUParameter &theAUVP, eRect *bounds, CAUGuiResolution resolution) | |
| constructor for an AudioUnit Parameter related Control object | |
| CAUGuiCtrl (CAUGuiMan *theCAUGuiMan, eRect *bounds, UInt32 Range) | |
| constructor for a CarbonControl object that has general purpose | |
| CAUGuiCtrl (CAUGuiMan *theCAUGuiMan, eRect *bounds) | |
| constructor for a "virtual" Control object doesn't even has to have a CarbonControl | |
| virtual | ~CAUGuiCtrl () |
| destructor WARNING! - Kills all subsequent and inherited Control objects (linked list behaviour of CAUGuiItem...) | |
| void | setDefaults () |
| sets default values, called from constructor | |
| virtual void | setCarbonControl (ControlRef theCarbonControl) |
| CAUGuiMan will allocate the CarbonControl and pass it here. | |
| virtual ControlRef | getCarbonControl () |
| get the CarbonControl | |
| virtual void | clip (bool drawing) |
| draw a clipping region (either to prepare drawing or to not being overdrawn) | |
| virtual void | setVisible (bool viz) |
| hide / unhide a Control | |
| virtual void | draw (CGContextRef context, UInt32 portHeight) |
| receives draws from CAUGuiControlHandler | |
| virtual void | mouseDown (Point *P, bool with_option, bool with_shift) |
| receives Mouse clicks from CAUGuiControlHandler | |
| virtual void | mouseTrack (Point *P, bool with_option, bool with_shift) |
| receives MouseTracking from CAUGuiControlHandler | |
| virtual void | mouseUp (Point *P, bool with_option, bool with_shift) |
| receives Mouse ups from CAUGuiControlHandler | |
| virtual void | mouseRight (Point *P) |
| derive this to react on mouse clicks /w CTRL for contextual stuff, but you need to install special event handlers. I never managed to get this working | |
| virtual void | setDefault () |
| on command click, the default value is restored | |
| virtual void | idle () |
| the idle timer... | |
| virtual bool | isControlRef (ControlRef theControl) |
| checks if this or an embedded control is inside | |
| virtual bool | providesForeignControls () |
| true if it has CarbonControls that havn't been assigned by CAUGuiMan | |
| virtual void | initForeignControls (ControlDefSpec &ControlSpec) |
| if it has its own CarbonControls, then we initialize them here | |
| virtual bool | isAUVPattached () |
| true if the Control is attached to an AudioUnit Parameter | |
| virtual void | embedCAUGuiCtrl () |
| only used from panes since true embedding/inheritance doesn't work | |
| virtual void | addCtrl (CAUGuiCtrl *theCtrl) |
| only used from panes | |
| bool | getOpaque () |
| is the control object a visible object (CarbonControl) or "virtual" (pane) | |
| void | setOpaque (bool o) |
| setter for customization by derived objects | |
| virtual void | getBounds (Rect *r) |
| sets the passed eRect to the control's bounds on window coordinates | |
| virtual void | getForeBounds (Rect *r) |
| sets the passed eRect to the control's inner bounds on window coordinates | |
| virtual CAUGuiResolution | getResolution () |
| ... | |
| virtual CAAUParameter & | getAUVP () |
| ... | |
| virtual float | getRange () |
| ... | |
| virtual eRect * | getBounds () |
| returns the control's bounds on window coordinates | |
| virtual eRect * | getForeBounds () |
| returns the control's inner bounds on window coordinates | |
| virtual CAUGuiMan * | getCAUGuiMan () |
| ... | |
| virtual CAUGuiCtrl * | getDaddy () |
| ... | |
| virtual CAUGuiCtrl * | getChild (ControlRef theControl) |
| ... | |
| virtual void | setDaddy (CAUGuiCtrl *theDaddy) |
| ... | |
| virtual void | setOffset (SInt32 x, SInt32 y) |
| this is used toconvert from relative coordinate space to window coordinate space while embedding the control | |
| virtual void | setBounds (eRect *r) |
| sets the Bounds - use ONLY before embedding | |
| virtual void | setForeBounds (eRect *r) |
| sets the Bounds of Foreground from erect - use ONLY before embedding | |
| virtual void | setForeBounds (SInt32 x, SInt32 y, SInt32 w, SInt32 h) |
| sets the Bounds of Foreground form x,y,w,h values - use ONLY before embedding | |
| virtual void | shrinkForeBounds (SInt32 x, SInt32 y, SInt32 w, SInt32 h) |
| use this if the background is bigger than the foreground | |
| virtual void | setLastUpdated (SInt32 v) |
| ... | |
| virtual SInt32 | getLastUpdated (void) |
| ... | |
| virtual void | setTolerance (SInt32 t) |
| ... | |
| virtual bool | mustUpdate (void) |
| ... | |
| virtual bool | wantsTracking (void) |
| ... | |
| virtual void | setColour (float r, float g, float b, float a) |
| set Colour for foreground drawing | |
| virtual void | setFont (char *theFont) |
| set fontface, i.e. "Monaco" | |
| virtual void | setTextAlign (int a) |
| 0 = left, 1 = center, 2 = right | |
Protected Attributes | |
| CAUGuiMan * | Chief |
| CAAUParameter | auvp |
| CAUGuiCtrl * | Daddy |
| CAUGuiCtrl * | children |
| UInt32 | id |
| CAUGuiResolution | Resolution |
| float | Range |
| bool | AUVPattached |
| bool | opaque |
| ControlRef | carbonControl |
| eRect | where |
| eRect | vizArea |
| SInt32 | lastUpdatedValue |
| SInt32 | tolerance |
| bool | becameVisible |
| bool | wantsTrackingFlag |
| float | col_red |
| float | col_green |
| float | col_blue |
| float | col_alpha |
| float | font_size |
| int | textalign |
| char | font_name [32] |
Definition at line 207 of file CAUGui.h.
|
||||||||||||||||||||
|
constructor for an AudioUnit Parameter related Control object
Definition at line 12 of file CAUGuiControl.cpp. References auvp, AUVPattached, Chief, Range, Resolution, eRect::set(), setDefaults(), vizArea, and where. |
|
||||||||||||||||
|
constructor for a CarbonControl object that has general purpose
Definition at line 40 of file CAUGuiControl.cpp. References auvp, AUVPattached, Chief, kCAUGui_res_1, Range, Resolution, eRect::set(), setDefaults(), vizArea, and where. |
|
||||||||||||
|
constructor for a "virtual" Control object doesn't even has to have a CarbonControl
Definition at line 64 of file CAUGuiControl.cpp. References auvp, AUVPattached, Chief, kCAUGui_res_0, Range, Resolution, eRect::set(), setDefaults(), vizArea, and where. |
|
|
destructor WARNING! - Kills all subsequent and inherited Control objects (linked list behaviour of CAUGuiItem...)
Definition at line 85 of file CAUGuiControl.cpp. References carbonControl, and children. |
|
|
only used from panes
Reimplemented in CAUGuiLayeredPane. Definition at line 129 of file CAUGuiControl.cpp. References CAUGuiMan::addCtrl(), CAUGuiItem::append(), Chief, children, where, eRect::x, and eRect::y. Referenced by CAUGuiLayeredPane::addCtrl(). |
|
|
draw a clipping region (either to prepare drawing or to not being overdrawn)
Reimplemented in CAUGuiLayeredPane. Definition at line 161 of file CAUGuiControl.cpp. References children, CAUGuiItem::getNext(), opaque, eRect::to(), and where. Referenced by CAUGuiControlHandler(), and CAUGuiLayeredPane::clip(). |
|
||||||||||||
|
receives draws from CAUGuiControlHandler
Reimplemented in CAUGuiButton, CAUGuiDisplay, CAUGuiKnob, CAUGuiMeter, CAUGuiPane, CAUGuiLayeredPane, CAUGuiSelector, and CAUGuiSlider. Definition at line 272 of file CAUGui.h. Referenced by CAUGuiControlHandler(). |
|
|
only used from panes since true embedding/inheritance doesn't work
|
|
|
...
Definition at line 347 of file CAUGui.h. References auvp. Referenced by CAUGuiMan::addCtrl(), and CAUGuiDisplay::draw(). |
|
|
returns the control's bounds on window coordinates
Definition at line 353 of file CAUGui.h. References where. Referenced by CAUGuiLayeredPane::clip(), CAUGuiSlider::draw(), CAUGuiSelector::draw(), CAUGuiLayeredPane::draw(), CAUGuiPane::draw(), CAUGuiMeter::draw(), CAUGuiKnob::draw(), CAUGuiDisplay::draw(), CAUGuiButton::draw(), CAUGuiPane::initForeignControls(), CAUGuiSelector::mouseDown(), PoofButton::mouseDown(), CAUGuiSlider::mouseTrack(), and CAUGuiDisplay::mouseTrack(). |
|
|
sets the passed eRect to the control's bounds on window coordinates
Definition at line 338 of file CAUGui.h. References eRect::to(), and where. Referenced by CAUGuiMan::addCtrl(). |
|
|
get the CarbonControl
Definition at line 258 of file CAUGui.h. References carbonControl. Referenced by CAUGuiSlider::draw(), CAUGuiSelector::draw(), CAUGuiMeter::draw(), CAUGuiKnob::draw(), CAUGuiDisplay::draw(), CAUGuiButton::draw(), CAUGuiMeter::idle(), CAUGuiSelector::mouseDown(), CAUGuiKnob::mouseDown(), CAUGuiDisplay::mouseDown(), CAUGuiButton::mouseDown(), CAUGuiDisplay::mouseRight(), CAUGuiSlider::mouseTrack(), CAUGuiKnob::mouseTrack(), CAUGuiDisplay::mouseTrack(), CAUGuiButton::mouseUp(), and setDefault(). |
|
|
...
Definition at line 359 of file CAUGui.h. References Chief. Referenced by CAUGuiPane::initForeignControls(). |
|
|
...
Reimplemented in CAUGuiPane, and CAUGuiLayeredPane. Definition at line 259 of file CAUGuiControl.cpp. References carbonControl, children, CAUGuiItem::getNext(), and isControlRef(). Referenced by CAUGuiLayeredPane::getChild(), CAUGuiPane::getChild(), and CAUGuiMan::getCtrlByControlRef(). |
|
|
...
Definition at line 362 of file CAUGui.h. References Daddy. Referenced by CAUGuiMan::addCtrl(). |
|
|
returns the control's inner bounds on window coordinates
Definition at line 356 of file CAUGui.h. References vizArea. Referenced by CAUGuiSlider::draw(), CAUGuiSelector::draw(), CAUGuiMeter::draw(), CAUGuiKnob::draw(), CAUGuiDisplay::draw(), CAUGuiSelector::mouseDown(), and CAUGuiSlider::mouseTrack(). |
|
|
sets the passed eRect to the control's inner bounds on window coordinates
Definition at line 341 of file CAUGui.h. References eRect::to(), and vizArea. |
|
|
...
Definition at line 389 of file CAUGui.h. References lastUpdatedValue. |
|
|
is the control object a visible object (CarbonControl) or "virtual" (pane)
Definition at line 330 of file CAUGui.h. References opaque. Referenced by CAUGuiLayeredPane::clip(). |
|
|
...
Definition at line 350 of file CAUGui.h. Referenced by CAUGuiMan::addCtrl(), and CAUGuiKnob::mouseTrack(). |
|
|
...
Definition at line 344 of file CAUGui.h. References CAUGuiResolution, and Resolution. Referenced by CAUGuiMan::addCtrl(), CAUGuiKnob::mouseTrack(), and CAUGuiDisplay::mouseTrack(). |
|
|
the idle timer...
Reimplemented in CAUGuiMeter, CAUGuiLayeredPane, and PoofButton. Definition at line 236 of file CAUGuiControl.cpp. References children, and CAUGuiItem::getNext(). Referenced by PoofButton::idle(), CAUGuiLayeredPane::idle(), CAUGuiMeter::idle(), and CAUGuiMan::idle(). |
|
|
if it has its own CarbonControls, then we initialize them here
Reimplemented in CAUGuiPane. Definition at line 314 of file CAUGui.h. Referenced by CAUGuiMan::addCtrl(). |
|
|
true if the Control is attached to an AudioUnit Parameter
Definition at line 317 of file CAUGui.h. References AUVPattached. Referenced by CAUGuiMan::addCtrl(), and setDefault(). |
|
|
checks if this or an embedded control is inside
Reimplemented in CAUGuiPane, and CAUGuiLayeredPane. Definition at line 244 of file CAUGuiControl.cpp. References carbonControl, children, and CAUGuiItem::getNext(). Referenced by CAUGuiLayeredPane::getChild(), getChild(), CAUGuiMan::getCtrlByControlRef(), CAUGuiLayeredPane::isControlRef(), and CAUGuiPane::isControlRef(). |
|
||||||||||||||||
|
receives Mouse clicks from CAUGuiControlHandler
Reimplemented in CAUGuiButton, CAUGuiDisplay, CAUGuiKnob, CAUGuiMeter, CAUGuiPane, CAUGuiLayeredPane, PoofButton, CAUGuiSelector, and CAUGuiSlider. Definition at line 283 of file CAUGui.h. Referenced by CAUGuiControlHandler(). |
|
|
derive this to react on mouse clicks /w CTRL for contextual stuff, but you need to install special event handlers. I never managed to get this working
Reimplemented in CAUGuiDisplay. Definition at line 292 of file CAUGui.h. Referenced by CAUGuiControlHandler(). |
|
||||||||||||||||
|
receives MouseTracking from CAUGuiControlHandler
Reimplemented in CAUGuiButton, CAUGuiDisplay, CAUGuiKnob, CAUGuiMeter, CAUGuiPane, CAUGuiLayeredPane, CAUGuiSelector, and CAUGuiSlider. Definition at line 286 of file CAUGui.h. Referenced by CAUGuiControlHandler(). |
|
||||||||||||||||
|
receives Mouse ups from CAUGuiControlHandler
Reimplemented in CAUGuiButton, CAUGuiDisplay, CAUGuiKnob, CAUGuiMeter, CAUGuiPane, CAUGuiLayeredPane, PoofButton, CAUGuiSelector, and CAUGuiSlider. Definition at line 289 of file CAUGui.h. Referenced by CAUGuiControlHandler(). |
|
|
...
Definition at line 287 of file CAUGuiControl.cpp. References becameVisible, carbonControl, Chief, CAUGuiMan::isRelaxed(), lastUpdatedValue, and tolerance. Referenced by CAUGuiControlHandler(). |
|
|
true if it has CarbonControls that havn't been assigned by CAUGuiMan
Reimplemented in CAUGuiPane. Definition at line 311 of file CAUGui.h. Referenced by CAUGuiMan::addCtrl(). |
|
|
sets the Bounds - use ONLY before embedding
Definition at line 374 of file CAUGui.h. References eRect::set(), and where. Referenced by CAUGuiKnob::CAUGuiKnob(), CAUGuiSelector::CAUGuiSelector(), and CAUGuiSlider::CAUGuiSlider(). |
|
|
CAUGuiMan will allocate the CarbonControl and pass it here.
Definition at line 255 of file CAUGui.h. References carbonControl. Referenced by CAUGuiMan::addCtrl(). |
|
||||||||||||||||||||
|
set Colour for foreground drawing
|
|
|
...
Definition at line 368 of file CAUGui.h. References Daddy. |
|
|
on command click, the default value is restored
Definition at line 216 of file CAUGuiControl.cpp. References auvp, carbonControl, getCarbonControl(), isAUVPattached(), and Range. Referenced by CAUGuiControlHandler(). |
|
|
sets default values, called from constructor
Definition at line 92 of file CAUGuiControl.cpp. References becameVisible, carbonControl, CAUGUI_DEFAULT_FONT_ALIGN, CAUGUI_FONT, CAUGUI_FONT_ALPHA, CAUGUI_FONT_BLUE, CAUGUI_FONT_GREEN, CAUGUI_FONT_RED, CAUGUI_FONT_SIZE, children, col_alpha, col_blue, col_green, col_red, Daddy, font_name, font_size, lastUpdatedValue, opaque, textalign, tolerance, and wantsTrackingFlag. Referenced by CAUGuiCtrl(). |
|
|
set fontface, i.e. "Monaco"
Definition at line 411 of file CAUGui.h. References font_name. |
|
||||||||||||||||||||
|
sets the Bounds of Foreground form x,y,w,h values - use ONLY before embedding
Definition at line 276 of file CAUGuiControl.cpp. References eRect::set(), and vizArea. |
|
|
sets the Bounds of Foreground from erect - use ONLY before embedding
Definition at line 377 of file CAUGui.h. References eRect::set(), and vizArea. |
|
|
...
Definition at line 386 of file CAUGui.h. References lastUpdatedValue. |
|
||||||||||||
|
this is used toconvert from relative coordinate space to window coordinate space while embedding the control
Reimplemented in CAUGuiLayeredPane. Definition at line 145 of file CAUGuiControl.cpp. References children, CAUGuiItem::getNext(), eRect::offset(), vizArea, and where. Referenced by CAUGuiLayeredPane::setOffset(). |
|
|
setter for customization by derived objects
Definition at line 333 of file CAUGui.h. References opaque. Referenced by CAUGuiPane::initForeignControls(). |
|
|
0 = left, 1 = center, 2 = right
Definition at line 414 of file CAUGui.h. References textalign. |
|
|
...
Definition at line 392 of file CAUGui.h. References tolerance. Referenced by CAUGuiKnob::CAUGuiKnob(), CAUGuiPane::CAUGuiPane(), CAUGuiSelector::CAUGuiSelector(), and CAUGuiSlider::CAUGuiSlider(). |
|
|
hide / unhide a Control
Definition at line 190 of file CAUGuiControl.cpp. References becameVisible, carbonControl, children, and CAUGuiItem::getNext(). Referenced by CAUGuiLayeredPane::setLayer(), and CAUGuiLayeredPane::showGroup(). |
|
||||||||||||||||||||
|
use this if the background is bigger than the foreground
Definition at line 282 of file CAUGuiControl.cpp. References eRect::grow(), and vizArea. |
|
|
...
Definition at line 398 of file CAUGui.h. References wantsTrackingFlag. Referenced by CAUGuiControlHandler(). |
|
|
Definition at line 424 of file CAUGui.h. Referenced by CAUGuiCtrl(), getAUVP(), and setDefault(). |
|
|
Definition at line 431 of file CAUGui.h. Referenced by CAUGuiCtrl(), and isAUVPattached(). |
|
|
Definition at line 441 of file CAUGui.h. Referenced by mustUpdate(), setDefaults(), and setVisible(). |
|
|
Definition at line 435 of file CAUGui.h. Referenced by getCarbonControl(), getChild(), isControlRef(), mustUpdate(), setCarbonControl(), setDefault(), setDefaults(), setVisible(), and ~CAUGuiCtrl(). |
|
|
Definition at line 423 of file CAUGui.h. Referenced by addCtrl(), CAUGuiCtrl(), getCAUGuiMan(), and mustUpdate(). |
|
|
Definition at line 426 of file CAUGui.h. Referenced by addCtrl(), clip(), getChild(), idle(), isControlRef(), setDefaults(), setOffset(), setVisible(), and ~CAUGuiCtrl(). |
|
|
Definition at line 448 of file CAUGui.h. Referenced by setColour(), and setDefaults(). |
|
|
Definition at line 447 of file CAUGui.h. Referenced by setColour(), and setDefaults(). |
|
|
Definition at line 446 of file CAUGui.h. Referenced by setColour(), and setDefaults(). |
|
|
Definition at line 445 of file CAUGui.h. Referenced by setColour(), and setDefaults(). |
|
|
Definition at line 425 of file CAUGui.h. Referenced by getDaddy(), setDaddy(), and setDefaults(). |
|
|
Definition at line 452 of file CAUGui.h. Referenced by setDefaults(), and setFont(). |
|
|
Definition at line 450 of file CAUGui.h. Referenced by setDefaults(). |
|
|
Reimplemented from CAUGuiItem. |
|
|
Definition at line 439 of file CAUGui.h. Referenced by getLastUpdated(), mustUpdate(), setDefaults(), and setLastUpdated(). |
|
|
Definition at line 433 of file CAUGui.h. Referenced by clip(), getOpaque(), setDefaults(), and setOpaque(). |
|
|
Definition at line 429 of file CAUGui.h. Referenced by CAUGuiCtrl(), and setDefault(). |
|
|
Definition at line 428 of file CAUGui.h. Referenced by CAUGuiCtrl(), and getResolution(). |
|
|
Definition at line 451 of file CAUGui.h. Referenced by setDefaults(), and setTextAlign(). |
|
|
Definition at line 440 of file CAUGui.h. Referenced by mustUpdate(), setDefaults(), and setTolerance(). |
|
|
Definition at line 437 of file CAUGui.h. Referenced by CAUGuiCtrl(), getForeBounds(), setForeBounds(), setOffset(), and shrinkForeBounds(). |
|
|
Definition at line 443 of file CAUGui.h. Referenced by setDefaults(), and wantsTracking(). |
|
|
Definition at line 436 of file CAUGui.h. Referenced by addCtrl(), CAUGuiCtrl(), clip(), getBounds(), CAUGuiLayeredPane::placeGroupLabel(), setBounds(), and setOffset(). |
| (c) 2002 - 2003 by Urs Heckmann www.u-he.com |
1.3.6