#include <vstcontrols.h>
Inheritance diagram for CControl:
Public Member Functions | |
CControl (const CRect &size, CControlListener *listener=0, long tag=0, CBitmap *pBackground=0) | |
virtual | ~CControl () |
virtual void | draw (CDrawContext *pContext)=0 |
called if the view should draw itself | |
virtual void | doIdleStuff () |
virtual void | setValue (float val) |
virtual float | getValue () const |
virtual void | setMin (float val) |
virtual float | getMin () const |
virtual void | setMax (float val) |
virtual float | getMax () const |
virtual void | setOldValue (float val) |
virtual float | getOldValue (void) const |
virtual void | setDefaultValue (float val) |
virtual float | getDefaultValue (void) const |
virtual void | setTag (long val) |
virtual long | getTag () const |
virtual bool | isDirty () const |
check if view is dirty | |
virtual void | setDirty (const bool val=true) |
set the view to dirty so that it is redrawn in the next idle. Thread Safe ! | |
virtual void | beginEdit () |
virtual void | endEdit () |
virtual void | setBackOffset (CPoint &offset) |
virtual void | copyBackOffset () |
virtual void | setWheelInc (float val) |
virtual float | getWheelInc () const |
virtual void | bounceValue () |
virtual bool | checkDefaultValue (CDrawContext *pContext, long button) |
CControlListener * | getListener () const |
void | setListener (CControlListener *l) |
bool | isDoubleClick () |
Protected Attributes | |
CControlListener * | listener |
long | tag |
float | oldValue |
float | defaultValue |
float | value |
float | vmin |
float | vmax |
float | wheelInc |
long | lastTicks |
long | delta |
CPoint | backOffset |
This object manages the tag identification and the value of a control object.
Note: Since version 2.1, when an object uses the transparency for its background and draws on it (tranparency area) or the transparency area changes during different draws (CMovieBitmap ,...), the background will be false (not updated), you have to rewrite the draw function in order to redraw the background and then call the draw of the object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
called if the view should draw itself
Reimplemented from CView. Implemented in CScrollbar, CTabButton, COnOffButton, CParamDisplay, CTextLabel, CTextEdit, COptionMenu, CKnob, CAnimKnob, CVerticalSwitch, CHorizontalSwitch, CRockerSwitch, CMovieBitmap, CMovieButton, CAutoAnimation, CSlider, CSpecialDigit, CKickButton, CSplashScreen, and CVuMeter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
check if view is dirty
Reimplemented from CView. Reimplemented in CAnimKnob. |
|
|
|
|
|
|
|
set the view to dirty so that it is redrawn in the next idle. Thread Safe !
Reimplemented from CView. Reimplemented in CVuMeter. |
|
|
|
|
|
|
|
|
|
|
|
Reimplemented in COptionMenu. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|