#include <vstcontrols.h>
Inheritance diagram for CRockerSwitch:
Public Member Functions | |
CRockerSwitch (const CRect &size, CControlListener *listener, long tag, CBitmap *background, CPoint &offset, const long style=kHorizontal) | |
CRockerSwitch (const CRect &size, CControlListener *listener, long tag, CCoord heightOfOneImage, CBitmap *background, CPoint &offset, const long style=kHorizontal) | |
virtual | ~CRockerSwitch () |
virtual void | draw (CDrawContext *) |
called if the view should draw itself | |
virtual void | mouse (CDrawContext *pContext, CPoint &where, long button=-1) |
called if a mouse click event occurs | |
virtual bool | onWheel (CDrawContext *pContext, const CPoint &where, float distance) |
called if a mouse wheel event is happening over this view | |
Protected Attributes | |
CPoint | offset |
CCoord | heightOfOneImage |
long | style |
Define a rocker switch with 3 states using 3 subpixmaps. One click on its leftside, then the first subpixmap is displayed. One click on its rightside, then the third subpixmap is displayed. When the mouse button is relaxed, the second subpixmap is framed.
|
|
|
|
|
|
|
called if the view should draw itself
Implements CControl. |
|
called if a mouse click event occurs
Reimplemented from CView. |
|
called if a mouse wheel event is happening over this view
Reimplemented from CView. |
|
|
|
|
|
|