|
Public Member Functions |
| | CFrame (const CRect &size, void *pSystemWindow, void *pEditor) |
| | CFrame (const CRect &size, const char *pTitle, void *pEditor, const long style=0) |
| virtual | ~CFrame () |
| virtual bool | open (CPoint *pPoint=0) |
| virtual bool | close () |
| virtual bool | isOpen () const |
| virtual void | idle () |
| virtual void | doIdleStuff () |
| virtual unsigned long | getTicks () const |
| | get the current time (in ms)
|
| virtual long | getKnobMode () const |
| | get hosts knob mode
|
| virtual bool | setPosition (CCoord x, CCoord y) |
| virtual bool | getPosition (CCoord &x, CCoord &y) const |
| virtual bool | setSize (CCoord width, CCoord height) |
| virtual bool | getSize (CRect *pSize) const |
| virtual bool | getSize (CRect &pSize) const |
| virtual long | setModalView (CView *pView) |
| virtual CView * | getModalView () const |
| virtual void | beginEdit (long index) |
| virtual void | endEdit (long index) |
| virtual bool | getCurrentLocation (CPoint &where) |
| virtual void | setCursor (CCursorType type) |
| virtual void | setFocusView (CView *pView) |
| virtual CView * | getFocusView () const |
| virtual bool | advanceNextFocusView (CView *oldFocus, bool reverse=false) |
| virtual bool | setDropActive (bool val) |
| virtual bool | isDropActive () const |
| CDrawContext * | createDrawContext () |
| virtual void | setOpenFlag (bool val) |
| virtual bool | getOpenFlag () const |
| virtual void | invalidate (const CRect &rect) |
| virtual bool | updatesDisabled () const |
| virtual bool | updatesDisabled (bool state) |
| void * | getSystemWindow () const |
| void * | getParentSystemWindow () const |
| void | setParentSystemWindow (void *val) |
| virtual void | draw (CDrawContext *pContext) |
| virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
| virtual void | draw (CView *pView=0) |
| 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 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 void | update (CDrawContext *pContext) |
| virtual void | setViewSize (CRect &inRect) |
| virtual CView * | getCurrentView () const |
| | get the current view under the mouse
|
| virtual void * | getEditor () const |
Protected Member Functions |
| bool | initFrame (void *pSystemWin) |
Protected Attributes |
| void * | pEditor |
| void * | pSystemWindow |
| CView * | pModalView |
| CView * | pFocusView |
| bool | bFirstDraw |
| bool | bOpenFlag |
| bool | bDropActive |
| bool | bUpdatesDisabled |
It creates a platform dependend view object. On classic Mac OS it just draws into the provided window. On Mac OS X it is a ControlRef. On Windows it's a WS_CHILD Window.