CView
#include <vstgui.h>
class CView;
Parent class of the CFrame
class and the
different CControl
class.
Creates a view object.
virtual ~CView ();
Destroys a view object.
void redraw ();
To redraw the view attached to a frame.
To draw a specific rect inside the view.
virtual bool checkUpdate (
CRect& updateRect);
To check if in this rect the view needs an update.
context |
|
where |
Where the mouse click occured. Coordonates are in pixel relative to the
parent's frame. |
AEffGUIEditor :
Calls frame ->mouse
(x, y)
.
See also :
-
The
CControlListener
's valueChanged
method which is called when the value has changed.
virtual long notify (
CView* sender, const char* message);
Used to pass a message from one view to one other.
Called when the user hits a key.
Called when the user releases a key.
virtual bool onDrop (void **ptrItems, long nbItems, long type,
CPoint &where);
Called when during a drop the mouse is released.
ptrItems |
The list of items droped, depending on type :
kDropFiles : |
The path string (for MAC the FSSpec). |
kDropText : |
A text string. |
|
nbItems |
The number of items droped. |
type |
A constant from
CDropType
|
where |
The mouse location. |
return |
|
virtual void looseFocus ();
The view has no more the focus...
virtual void takeFocus ();
The view has now the focus on...
virtual bool isDirty ();
Returns true
if the view is dirty.
virtual void setDirty (const bool val = true);
Sets the dirty
value of the view.
virtual void setMouseEnabled (const bool bEnable = true);
Enable or disable the action of the mouse.
virtual bool getMouseEnabled ();
Gets the status of the mouse for this view.
virtual void setMouseableArea (const
CRect &rect)
Sets the mouseable area of this view.
Returns the mouseable area of this view.
virtual bool hitTest (const
CPoint& where, const long buttons);
Check whether the mouse click occured inside the view.
virtual void setTransparency (bool val);
Sets the transparency status of drawing mode for the pixmap.
virtual bool getTransparency () ;
Returns the transparency status of drawing mode for the pixmap.
long getHeight ();
Returns the height of this view.
long getWidth ();
Returns the width of this view.
virtual void setViewSize (
CRect &rect);
Sets the enclosing rectangle of the View (size).
Returns the enclosing rectangle of the View (size).
Returns the parent frame.
virtual void setParent (
CFrame *pParent);
Sets the parent frame.
virtual void setParentView (
CView *pParentView);
Sets the parent view.
virtual void *getEditor ();
Returns the AEffGUIEditor of the view.
virtual bool removed (CView *parent);
Called when this view is removed from its parent.
virtual bool attached (CView *view);
It has been attached to a view.
CView *getParentView ();
Returns the parent view of the actual one.
virtual bool removed (CView *parent);
It has have been removed from parent view.
virtual bool attached (CView *view);
It has been attached to a view.
virtual void forget ();
Someone who was referencing this view doesn't do it anymore. When the view isn't
referenced by anyone, it is destructed.
virtual void remember ();
Someone is referencing this view.
virtual long getNbReference ();
Returns the number of objects which have a reference to this view.