#include <vstgui.h>
Inheritance diagram for CView:
Public Member Functions | |
CView (const CRect &size) | |
virtual | ~CView () |
virtual void | draw (CDrawContext *pContext) |
called if the view should draw itself | |
virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
called if the view should draw itself | |
virtual bool | checkUpdate (CRect &updateRect) const |
virtual void | mouse (CDrawContext *pContext, CPoint &where, long buttons=-1) |
called if a mouse click event occurs | |
virtual void | setBackground (CBitmap *background) |
set the background image of this view | |
virtual CBitmap * | getBackground () const |
get the background image of this view | |
virtual long | onKeyDown (VstKeyCode &keyCode) |
called if a key down event occurs and this view has focus | |
virtual long | onKeyUp (VstKeyCode &keyCode) |
called if a key up event occurs and this view has focus | |
virtual bool | onWheel (CDrawContext *pContext, const CPoint &where, float distance) |
called if a mouse wheel event is happening over this view | |
virtual bool | onWheel (CDrawContext *pContext, const CPoint &where, const CMouseWheelAxis axis, float distance) |
called if a mouse wheel event is happening over this view | |
virtual bool | onDrop (CDrawContext *context, CDragContainer *drag, const CPoint &where) |
called if a drag is dropped onto this view | |
virtual void | onDragEnter (CDrawContext *context, CDragContainer *drag, const CPoint &where) |
called if a drag is entering this view | |
virtual void | onDragLeave (CDrawContext *context, CDragContainer *drag, const CPoint &where) |
called if a drag is leaving this view | |
virtual void | onDragMove (CDrawContext *context, CDragContainer *drag, const CPoint &where) |
called if a drag is current moved over this view | |
virtual void | looseFocus (CDrawContext *pContext=0) |
called if view should loose focus | |
virtual void | takeFocus (CDrawContext *pContext=0) |
called if view should take focus | |
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 | setMouseEnabled (const bool bEnable=true) |
turn on/off mouse usage for this view | |
virtual bool | getMouseEnabled () const |
get the state of wheather this view uses the mouse or not | |
virtual void | setMouseableArea (const CRect &rect) |
set the area in which the view reacts to the mouse | |
virtual CRect & | getMouseableArea (CRect &rect) const |
get the area in which the view reacts to the mouse | |
virtual bool | hitTest (const CPoint &where, const long buttons=-1) |
check if where hits this view | |
virtual void | setTransparency (bool val) |
set views transparent state | |
virtual bool | getTransparency () const |
is view transparent ? | |
CCoord | getHeight () const |
get the height of the view | |
CCoord | getWidth () const |
get the width of the view | |
virtual void | setViewSize (CRect &rect) |
set views size | |
virtual CRect & | getViewSize (CRect &rect) const |
returns the current view size | |
virtual bool | removed (CView *parent) |
view is removed from parent view | |
virtual bool | attached (CView *view) |
view is attached to a parent view | |
virtual void | getMouseLocation (CDrawContext *context, CPoint &point) |
get current mouse location in local view coordinates | |
virtual CPoint & | frameToLocal (CPoint &point) const |
conversion from frame coordinates to local view coordinates | |
virtual CPoint & | localToFrame (CPoint &point) const |
conversion from local view coordinates to frame coordinates | |
bool | getAttributeSize (const CViewAttributeID id, long &outSize) const |
get the size of an attribute | |
bool | getAttribute (const CViewAttributeID id, const long inSize, void *outData, long &outSize) const |
get an attribute | |
bool | setAttribute (const CViewAttributeID id, const long inSize, void *inData) |
set an attribute | |
CView * | getParentView () const |
CFrame * | getFrame () const |
virtual void * | getEditor () const |
virtual long | notify (CView *sender, const char *message) |
void | redraw () |
virtual void | redrawRect (CDrawContext *context, const CRect &rect) |
virtual bool | wantsFocus () const |
check if view supports focus | |
virtual void | setWantsFocus (bool state) |
set focus support on/off | |
virtual bool | isTypeOf (const char *s) const |
Protected Member Functions | |
virtual void | update (CDrawContext *pContext) |
Protected Attributes | |
CRect | size |
CRect | mouseableArea |
CFrame * | pParentFrame |
CView * | pParentView |
bool | bDirty |
bool | bMouseEnabled |
bool | bTransparencyEnabled |
bool | bWantsFocus |
CBitmap * | pBackground |
CAttributeListEntry * | pAttributeList |
Friends | |
class | CControl |
class | CFrame |
class | CViewContainer |
|
|
|
|
|
view is attached to a parent view
Reimplemented in CSlider, CVuMeter, and CViewContainer. |
|
|
|
called if the view should draw itself
Reimplemented in CScrollbar, CTabButton, CControl, COnOffButton, CParamDisplay, CTextLabel, CTextEdit, COptionMenu, CKnob, CAnimKnob, CVerticalSwitch, CHorizontalSwitch, CRockerSwitch, CMovieBitmap, CMovieButton, CAutoAnimation, CSlider, CSpecialDigit, CKickButton, CSplashScreen, CVuMeter, CViewContainer, and CFrame. |
|
called if the view should draw itself
Reimplemented in CViewContainer, and CFrame. |
|
conversion from frame coordinates to local view coordinates
Reimplemented in CViewContainer. |
|
get an attribute
|
|
get the size of an attribute
|
|
get the background image of this view
|
|
Reimplemented in CFrame. |
|
|
|
get the height of the view
|
|
get the area in which the view reacts to the mouse
|
|
get the state of wheather this view uses the mouse or not
|
|
get current mouse location in local view coordinates
|
|
|
|
is view transparent ?
|
|
returns the current view size
|
|
get the width of the view
|
|
check if where hits this view
Reimplemented in CSplashScreen, and CViewContainer. |
|
check if view is dirty
Reimplemented in CScrollContainer, CControl, CAnimKnob, and CViewContainer. |
|
|
|
conversion from local view coordinates to frame coordinates
Reimplemented in CViewContainer. |
|
called if view should loose focus
Reimplemented in CTextEdit, COptionMenu, and CViewContainer. |
|
called if a mouse click event occurs
Reimplemented in CScrollbar, CTabButton, COnOffButton, CTextEdit, COptionMenu, CKnob, CVerticalSwitch, CHorizontalSwitch, CRockerSwitch, CMovieButton, CAutoAnimation, CSlider, CKickButton, CSplashScreen, CViewContainer, and CFrame. |
|
Reimplemented in CViewContainer. |
|
called if a drag is entering this view
Reimplemented in CTabButton, and CViewContainer. |
|
called if a drag is leaving this view
Reimplemented in CViewContainer. |
|
called if a drag is current moved over this view
Reimplemented in CViewContainer. |
|
called if a drag is dropped onto this view
Reimplemented in CViewContainer. |
|
called if a key down event occurs and this view has focus
Reimplemented in CKnob, CSlider, CViewContainer, and CFrame. |
|
called if a key up event occurs and this view has focus
Reimplemented in CViewContainer, and CFrame. |
|
called if a mouse wheel event is happening over this view
Reimplemented in CScrollView, CViewContainer, and CFrame. |
|
called if a mouse wheel event is happening over this view
Reimplemented in CScrollbar, CKnob, CRockerSwitch, CSlider, CViewContainer, and CFrame. |
|
|
|
Reimplemented in CScrollContainer, and CViewContainer. |
|
view is removed from parent view
Reimplemented in CSlider, CVuMeter, and CViewContainer. |
|
set an attribute copies data into the attribute. If it does not exist, creates a new attribute.
|
|
set the background image of this view
|
|
set the view to dirty so that it is redrawn in the next idle. Thread Safe !
|
|
set the area in which the view reacts to the mouse
|
|
turn on/off mouse usage for this view
|
|
set views transparent state
|
|
set views size
Reimplemented in CViewContainer, and CFrame. |
|
set focus support on/off
|
|
called if view should take focus
Reimplemented in CTextEdit, COptionMenu, and CViewContainer. |
|
Reimplemented in CViewContainer, and CFrame. |
|
check if view supports focus
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|