#include <vstgui.h>
Inheritance diagram for CViewContainer:

Public Types | |
| enum | { kNormalUpdate = 0, kOnlyDirtyUpdate } |
Public Member Functions | |
| CViewContainer (const CRect &size, CFrame *pParent, CBitmap *pBackground=0) | |
| virtual | ~CViewContainer () |
| virtual void | addView (CView *pView) |
| add a child view | |
| virtual void | addView (CView *pView, CRect &mouseableArea, bool mouseEnabled=true) |
| add a child view | |
| virtual void | removeView (CView *pView, const bool &withForget=true) |
| remove a child view | |
| virtual void | removeAll (const bool &withForget=true) |
| remove all child views | |
| virtual bool | isChild (CView *pView) const |
| check if pView is a child view of this container | |
| virtual long | getNbViews () const |
| get the number of child views | |
| virtual CView * | getView (long index) const |
| get the child view at index | |
| virtual void | setBackgroundColor (const CColor color) |
| set the background color (will only be drawn if this container is not set to transparent and does not have a background bitmap) | |
| virtual CColor | getBackgroundColor () const |
| get the background color | |
| virtual void | setBackgroundOffset (const CPoint &p) |
| set the offset of the background bitmap | |
| virtual const CPoint & | getBackgroundOffset () const |
| get the offset of the background bitmap | |
| virtual void | drawBackgroundRect (CDrawContext *pContext, CRect &_updateRect) |
| draw the background | |
| virtual void | setMode (long val) |
| set the update mode | |
| virtual long | getMode () const |
| get the update mode | |
| virtual void | useOffscreen (bool b) |
| turn on/off using an offscreen | |
| virtual CView * | getCurrentView () const |
| get the current view under the mouse | |
| virtual CView * | getViewAt (const CPoint &where, bool deep=false) const |
| get the view at point where | |
| void | modifyDrawContext (CCoord save[4], CDrawContext *pContext) |
| void | restoreDrawContext (CDrawContext *pContext, CCoord save[4]) |
| virtual void | draw (CDrawContext *pContext) |
| virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
| virtual void | mouse (CDrawContext *pContext, CPoint &where, long buttons=-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 | |
| 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 void | update (CDrawContext *pContext) |
| virtual bool | hitTest (const CPoint &where, const long buttons=-1) |
| check if where hits 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 long | notify (CView *sender, const char *message) |
| 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 | advanceNextFocusView (CView *oldFocus, bool reverse=false) |
| virtual bool | isDirty () const |
| check if view is dirty | |
| virtual void | setViewSize (CRect &rect) |
| virtual bool | removed (CView *parent) |
| view is removed from parent view | |
| virtual bool | attached (CView *view) |
| view is attached to a parent view | |
| 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 | |
| virtual void | redrawRect (CDrawContext *context, const CRect &rect) |
Protected Member Functions | |
| bool | hitTestSubViews (const CPoint &where, const long buttons=-1) |
Protected Attributes | |
| CCView * | pFirstView |
| CCView * | pLastView |
| long | mode |
| COffscreenContext * | pOffscreenContext |
| CColor | backgroundColor |
| CPoint | backgroundOffset |
| bool | bDrawInOffscreen |
| CView * | currentDragView |
|
|
|
|
||||||||||||||||
|
CViewContainer constructor.
|
|
|
|
|
||||||||||||||||
|
add a child view
|
|
|
add a child view
Reimplemented in CScrollView. |
|
||||||||||||
|
Reimplemented in CFrame. |
|
|
view is attached to a parent view
Reimplemented from CView. |
|
|
Reimplemented from CView. Reimplemented in CFrame. |
|
||||||||||||
|
draw the background
Reimplemented in CScrollView. |
|
||||||||||||
|
Reimplemented from CView. Reimplemented in CFrame. |
|
|
conversion from frame coordinates to local view coordinates
Reimplemented from CView. |
|
|
get the background color
|
|
|
get the offset of the background bitmap
|
|
|
get the current view under the mouse
Reimplemented in CFrame. |
|
|
get the update mode
|
|
|
get the number of child views
|
|
|
get the child view at index
|
|
||||||||||||
|
get the view at point where
|
|
||||||||||||
|
check if where hits this view
Reimplemented from CView. |
|
||||||||||||
|
|
|
|
check if pView is a child view of this container
|
|
|
check if view is dirty
Reimplemented from CView. Reimplemented in CScrollContainer. |
|
|
conversion from local view coordinates to frame coordinates
Reimplemented from CView. |
|
|
called if view should loose focus
Reimplemented from CView. |
|
||||||||||||
|
|
|
||||||||||||||||
|
called if a mouse click event occurs
Reimplemented from CView. Reimplemented in CFrame. |
|
||||||||||||
|
Reimplemented from CView. |
|
||||||||||||||||
|
called if a drag is entering this view
Reimplemented from CView. |
|
||||||||||||||||
|
called if a drag is leaving this view
Reimplemented from CView. |
|
||||||||||||||||
|
called if a drag is current moved over this view
Reimplemented from CView. |
|
||||||||||||||||
|
called if a drag is dropped onto this view
Reimplemented from CView. |
|
|
called if a key down event occurs and this view has focus
Reimplemented from CView. Reimplemented in CFrame. |
|
|
called if a key up event occurs and this view has focus
Reimplemented from CView. Reimplemented in CFrame. |
|
||||||||||||||||||||
|
called if a mouse wheel event is happening over this view
Reimplemented from CView. Reimplemented in CScrollView, and CFrame. |
|
||||||||||||||||
|
called if a mouse wheel event is happening over this view
Reimplemented from CView. Reimplemented in CFrame. |
|
||||||||||||
|
Reimplemented from CView. Reimplemented in CScrollContainer. |
|
|
remove all child views
|
|
|
view is removed from parent view
Reimplemented from CView. |
|
||||||||||||
|
remove a child view
|
|
||||||||||||
|
|
|
|
set the background color (will only be drawn if this container is not set to transparent and does not have a background bitmap)
|
|
|
set the offset of the background bitmap
|
|
|
set the update mode
|
|
|
Reimplemented from CView. Reimplemented in CFrame. |
|
|
called if view should take focus
Reimplemented from CView. |
|
|
Reimplemented from CView. Reimplemented in CFrame. |
|
|
turn on/off using an offscreen
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|