#include <vstcontrols.h>
Inheritance diagram for COnOffButton:
Public Types | |
enum | { kPreListenerUpdate, kPostListenerUpdate } |
Public Member Functions | |
COnOffButton (const CRect &size, CControlListener *listener, long tag, CBitmap *background, long style=kPreListenerUpdate) | |
virtual | ~COnOffButton () |
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 long | getStyle () const |
virtual void | setStyle (long newStyle) |
Protected Attributes | |
long | style |
Define a button with 2 positions. The pixmap includes the 2 subpixmaps (i.e the rectangle used for the display of this button is half-height of the pixmap). When its value changes, the listener is called.
|
|
|
|
|
|
|
called if the view should draw itself
Implements CControl. Reimplemented in CTabButton. |
|
|
|
called if a mouse click event occurs
Reimplemented from CView. Reimplemented in CTabButton. |
|
|
|
|