a tab view More...
#include <ctabview.h>
Public Types | |
enum | TabPosition { kPositionLeft = 0, kPositionRight, kPositionTop, kPositionBottom } |
enum | TabAlignment { kAlignCenter = 0, kAlignLeft, kAlignRight, kAlignTop = kAlignLeft, kAlignBottom = kAlignRight } |
Public Member Functions | |
virtual | ~CTabView () |
virtual void | valueChanged (CControl *pControl) |
virtual void | setViewSize (CRect &rect, bool invalid=true) |
virtual void | useOffscreen (bool b) |
turn on/off using an offscreen. Not necessary with GDI+ on Windows, or on Mac OS X. | |
void | modifyDrawContext (CCoord save[4], CDrawContext *pContext) |
void | restoreDrawContext (CDrawContext *pContext, CCoord save[4]) |
virtual bool | advanceNextFocusView (CView *oldFocus, bool reverse=false) |
virtual void | draw (CDrawContext *pContext) |
virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
virtual CMouseEventResult | onMouseDown (CPoint &where, const long &buttons) |
called when a mouse down event occurs | |
virtual CMouseEventResult | onMouseUp (CPoint &where, const long &buttons) |
called when a mouse up event occurs | |
virtual CMouseEventResult | onMouseMoved (CPoint &where, const long &buttons) |
called when a mouse move event occurs | |
virtual bool | onWheel (const CPoint &where, const float &distance, const long &buttons) |
called if a mouse wheel event is happening over this view | |
virtual bool | onWheel (const CPoint &where, const CMouseWheelAxis &axis, const float &distance, const long &buttons) |
called if a mouse wheel event is happening over this view | |
virtual bool | hitTest (const CPoint &where, const long buttons=-1) |
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 CMessageResult | notify (CBaseObject *sender, const char *message) |
virtual bool | onDrop (CDragContainer *drag, const CPoint &where) |
called if a drag is dropped onto this view | |
virtual void | onDragEnter (CDragContainer *drag, const CPoint &where) |
called if a drag is entering this view | |
virtual void | onDragLeave (CDragContainer *drag, const CPoint &where) |
called if a drag is leaving this view | |
virtual void | onDragMove (CDragContainer *drag, const CPoint &where) |
called if a drag is moved inside this view | |
virtual void | looseFocus () |
called if view should loose focus | |
virtual void | takeFocus () |
called if view should take focus | |
virtual bool | isDirty () const |
check if view is dirty | |
virtual void | invalid () |
mark whole view as invalid | |
virtual void | invalidRect (const CRect rect) |
mark rect as invalid | |
virtual bool | invalidateDirtyViews () |
virtual void | parentSizeChanged () |
notification that one of the views parent has changed its size | |
virtual CRect | getVisibleSize (const CRect rect) const |
virtual bool | removed (CView *parent) |
virtual bool | removed (CView *parent) |
view is removed from parent view | |
virtual bool | attached (CView *parent) |
virtual bool | attached (CView *parent) |
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 bool | isTypeOf (const char *s) const |
virtual CView * | newCopy () const |
virtual DEPRECATED_ATTRIBUTE void | mouse (CDrawContext *pContext, CPoint &where, long buttons=-1) |
virtual DEPRECATED_ATTRIBUTE CView * | getCurrentView () const |
virtual void | setBackground (CBitmap *background) |
set the background image of this view | |
virtual CBitmap * | getBackground () const |
get the background image of this view | |
virtual void | setTransparency (bool val) |
set views transparent state | |
virtual bool | getTransparency () const |
get views transparent state | |
bool | isAttached () const |
is view attached to a parentView | |
virtual DEPRECATED_ATTRIBUTE void | getMouseLocation (CDrawContext *context, CPoint &point) |
virtual DEPRECATED_ATTRIBUTE void | setParentView (CView *pParentView) |
virtual DEPRECATED_ATTRIBUTE void | setFrame (CFrame *pParent) |
virtual DEPRECATED_ATTRIBUTE void | getFrameTopLeftPos (CPoint &topLeft) const |
virtual void | valueChanged (VSTGUI::CControl *pControl)=0 |
virtual long | controlModifierClicked (VSTGUI::CControl *pControl, long button) |
return 1 if you want the control to not handle it, otherwise 0 | |
virtual void | controlBeginEdit (VSTGUI::CControl *pControl) |
virtual void | controlEndEdit (VSTGUI::CControl *pControl) |
Protected Member Functions | |
void | setCurrentChild (CTabChildView *childView) |
virtual bool | checkUpdateRect (CView *view, const CRect &rect) |
virtual bool | hitTestSubViews (const CPoint &where, const long buttons=-1) |
void | drawBackToFront (CDrawContext *context, const CRect &rect) |
Protected Attributes | |
long | numberOfChilds |
long | currentTab |
TabPosition | tabPosition |
long | style |
CRect | tabSize |
CBitmap * | tabBitmap |
CTabChildView * | firstChild |
CTabChildView * | lastChild |
CTabChildView * | currentChild |
CCView * | pFirstView |
CCView * | pLastView |
COffscreenContext * | pOffscreenContext |
CColor | backgroundColor |
CPoint | backgroundOffset |
bool | bDrawInOffscreen |
CView * | currentDragView |
CView * | mouseDownView |
CRect | size |
CRect | mouseableArea |
CFrame * | pParentFrame |
CView * | pParentView |
bool | bDirty |
bool | bMouseEnabled |
bool | bTransparencyEnabled |
bool | bWantsFocus |
bool | bIsAttached |
bool | bVisible |
long | autosizeFlags |
CBitmap * | pBackground |
CAttributeListEntry * | pAttributeList |
Tab View Constructors | |
| |
CTabView (const CRect &size, CFrame *parent, CBitmap *tabBitmap, CBitmap *background=0, TabPosition tabPosition=kPositionTop, long style=0) | |
CTabView (const CRect &size, CFrame *parent, const CRect &tabSize, CBitmap *background=0, TabPosition tabPosition=kPositionTop, long style=0) | |
Tab View Functions | |
| |
virtual bool | addTab (CView *view, const char *name=0, CBitmap *tabBitmap=0) |
add a tab | |
virtual bool | addTab (CView *view, CControl *button) |
add a tab | |
virtual bool | removeTab (CView *view) |
remove a tab | |
virtual bool | removeAllTabs () |
remove all tabs | |
virtual bool | selectTab (long index) |
select tab at index | |
virtual long | getCurrentSelectedTab () const |
get current index of selected tab | |
virtual CRect & | getTabViewSize (CRect &rect) const |
the the size of one tab | |
virtual void | setTabFontStyle (const CFontRef font, CCoord fontSize=12, CColor selectedColor=kBlackCColor, CColor deselectedColor=kWhiteCColor) |
call this after the tabs are added. Tabs added after this call will have the default font style. | |
virtual void | alignTabs (TabAlignment alignment=kAlignCenter) |
call this after you have added all tabs to align them according to alignment | |
Sub View Methods | |
| |
virtual bool | addView (CView *pView) |
add a child view | |
virtual bool | addView (CView *pView, CRect &mouseableArea, bool mouseEnabled=true) |
add a child view | |
virtual bool | addView (CView *pView, CView *pBefore) |
add a child view before another view | |
virtual bool | removeView (CView *pView, const bool &withForget=true) |
remove a child view | |
virtual bool | 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 CView * | getViewAt (const CPoint &where, bool deep=false) const |
get the view at point where | |
virtual CViewContainer * | getContainerAt (const CPoint &where, bool deep=true) const |
get the container at point where | |
Background Methods | |
| |
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 | |
Message Methods | |
| |
virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
View Size Methods | |
| |
virtual CRect | getVisibleSize () const |
returns the visible size of the view | |
CCoord | getHeight () const |
get the height of the view | |
CCoord | getWidth () const |
get the width of the view | |
virtual CRect & | getViewSize (CRect &rect) const |
returns the current view size | |
virtual const CRect & | getViewSize () const |
read only access to view size | |
virtual void | setAutosizeFlags (long flags) |
set autosize flags | |
virtual long | getAutosizeFlags () const |
get autosize flags | |
Draw and Update Methods | |
| |
virtual bool | checkUpdate (const CRect &updateRect) const |
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 | setVisible (bool state) |
set visibility state | |
bool | isVisible () const |
get visibility state | |
Mouse Methods | |
| |
virtual CMouseEventResult | onMouseEntered (CPoint &where, const long &buttons) |
called when the mouse enters this view | |
virtual CMouseEventResult | onMouseExited (CPoint &where, const long &buttons) |
called when the mouse leaves this view | |
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 const CRect & | getMouseableArea () const |
read only access to the mouseable area | |
Focus Methods | |
| |
virtual bool | wantsFocus () const |
check if view supports focus | |
virtual void | setWantsFocus (bool state) |
set focus support on/off | |
Attribute Methods | |
| |
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, const void *inData) |
set an attribute | |
bool | removeAttribute (const CViewAttributeID id) |
remove an attribute | |
Parent Methods | |
| |
CView * | getParentView () const |
get parent view | |
CFrame * | getFrame () const |
get frame | |
virtual VSTGUIEditorInterface * | getEditor () const |
get editor | |
Reference Counting Methods | |
| |
virtual void | forget () |
decrease refcount and delete object if refcount == 0 | |
virtual void | remember () |
increase refcount | |
long | getNbReference () const |
get refcount |
a tab view
enum TabAlignment |
enum TabPosition |
CTabView | ( | const CRect & | size, | |
CFrame * | parent, | |||
CBitmap * | tabBitmap, | |||
CBitmap * | background = 0 , |
|||
TabPosition | tabPosition = kPositionTop , |
|||
long | style = 0 | |||
) |
CTabView | ( | const CRect & | size, | |
CFrame * | parent, | |||
const CRect & | tabSize, | |||
CBitmap * | background = 0 , |
|||
TabPosition | tabPosition = kPositionTop , |
|||
long | style = 0 | |||
) |
~CTabView | ( | ) | [virtual] |
add a child view before another view
pView | the view object to add to this container | |
pBefore | the view object |
bool addView | ( | CView * | pView, | |
CRect & | mouseableArea, | |||
bool | mouseEnabled = true | |||
) | [virtual, inherited] |
add a child view
pView | the view object to add to this container | |
mouseableArea | the view area in where the view will get mouse events | |
mouseEnabled | bool to set if view will get mouse events |
Reimplemented in CScrollView.
bool addView | ( | CView * | pView | ) | [virtual, inherited] |
add a child view
pView | the view object to add to this container |
Reimplemented in CScrollView.
bool advanceNextFocusView | ( | CView * | oldFocus, | |
bool | reverse = false | |||
) | [virtual, inherited] |
oldFocus | old focus view | |
reverse | search order |
Reimplemented in CFrame.
void alignTabs | ( | TabAlignment | alignment = kAlignCenter |
) | [virtual] |
call this after you have added all tabs to align them according to alignment
bool attached | ( | CView * | parent | ) | [virtual, inherited] |
view is attached to a parent view
parent | parent view |
bool attached | ( | CView * | parent | ) | [virtual, inherited] |
Reimplemented in CDataBrowser.
virtual bool checkUpdate | ( | const CRect & | updateRect | ) | const [inline, virtual, inherited] |
check if view needs to be updated for rect
view | view to check | |
rect | update rect |
virtual void controlBeginEdit | ( | VSTGUI::CControl * | pControl | ) | [inline, virtual, inherited] |
virtual void controlEndEdit | ( | VSTGUI::CControl * | pControl | ) | [inline, virtual, inherited] |
virtual long controlModifierClicked | ( | VSTGUI::CControl * | pControl, | |
long | button | |||
) | [inline, virtual, inherited] |
return 1 if you want the control to not handle it, otherwise 0
void draw | ( | CDrawContext * | pContext | ) | [virtual, inherited] |
void drawBackgroundRect | ( | CDrawContext * | pContext, | |
CRect & | _updateRect | |||
) | [virtual, inherited] |
draw the background
pContext | the context which to use to draw the background | |
_updateRect | the area which to draw |
Reimplemented in CScrollView.
void drawBackToFront | ( | CDrawContext * | context, | |
const CRect & | rect | |||
) | [protected, inherited] |
void drawRect | ( | CDrawContext * | pContext, | |
const CRect & | updateRect | |||
) | [virtual, inherited] |
virtual void forget | ( | ) | [inline, virtual, inherited] |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
conversion from frame coordinates to local view coordinates
point | location |
Reimplemented from CView.
bool getAttribute | ( | const CViewAttributeID | id, | |
const long | inSize, | |||
void * | outData, | |||
long & | outSize | |||
) | const [inherited] |
get an attribute
id | the ID of the Attribute | |
inSize | the size of the outData pointer | |
outData | a pointer where to copy the attribute data | |
outSize | the size in bytes which was copied into outData |
bool getAttributeSize | ( | const CViewAttributeID | id, | |
long & | outSize | |||
) | const [inherited] |
get the size of an attribute
id | the ID of the Attribute | |
outSize | on return the size of the attribute |
virtual long getAutosizeFlags | ( | ) | const [inline, virtual, inherited] |
get autosize flags
virtual CBitmap* getBackground | ( | ) | const [inline, virtual, inherited] |
get the background image of this view
virtual CColor getBackgroundColor | ( | ) | const [inline, virtual, inherited] |
get the background color
virtual const CPoint& getBackgroundOffset | ( | ) | const [inline, virtual, inherited] |
get the offset of the background bitmap
CViewContainer * getContainerAt | ( | const CPoint & | p, | |
bool | deep = true | |||
) | const [virtual, inherited] |
get the container at point where
p | location | |
deep | search deep |
virtual long getCurrentSelectedTab | ( | ) | const [inline, virtual] |
get current index of selected tab
VSTGUIEditorInterface * getEditor | ( | ) | const [virtual, inherited] |
get editor
Reimplemented in CFrame.
CFrame* getFrame | ( | ) | const [inline, inherited] |
get frame
void getFrameTopLeftPos | ( | CPoint & | topLeft | ) | const [virtual, inherited] |
CCoord getHeight | ( | ) | const [inline, inherited] |
get the height of the view
virtual const CRect& getMouseableArea | ( | ) | const [inline, virtual, inherited] |
read only access to the mouseable area
get the area in which the view reacts to the mouse
virtual bool getMouseEnabled | ( | ) | const [inline, virtual, inherited] |
get the state of wheather this view uses the mouse or not
void getMouseLocation | ( | CDrawContext * | context, | |
CPoint & | point | |||
) | [virtual, inherited] |
long getNbReference | ( | ) | const [inline, inherited] |
get refcount
long getNbViews | ( | ) | const [virtual, inherited] |
CView* getParentView | ( | ) | const [inline, inherited] |
get parent view
virtual bool getTransparency | ( | ) | const [inline, virtual, inherited] |
get views transparent state
CView * getView | ( | long | index | ) | const [virtual, inherited] |
get the child view at index
index | the index of the view to return |
Reimplemented in CScrollView.
get the view at point where
p | location | |
deep | search deep |
virtual const CRect& getViewSize | ( | ) | const [inline, virtual, inherited] |
read only access to view size
returns the current view size
CRect getVisibleSize | ( | ) | const [virtual, inherited] |
returns the visible size of the view
rect | size to get visible size of |
CCoord getWidth | ( | ) | const [inline, inherited] |
get the width of the view
bool hitTest | ( | const CPoint & | where, | |
const long | buttons = -1 | |||
) | [virtual, inherited] |
where | point | |
buttons | mouse button and modifier state |
Reimplemented from CView.
bool hitTestSubViews | ( | const CPoint & | where, | |
const long | buttons = -1 | |||
) | [protected, virtual, inherited] |
where | point | |
buttons | mouse button and modifier state |
void invalid | ( | ) | [virtual, inherited] |
bool invalidateDirtyViews | ( | ) | [virtual, inherited] |
void invalidRect | ( | const CRect | rect | ) | [virtual, inherited] |
bool isAttached | ( | ) | const [inline, inherited] |
is view attached to a parentView
bool isChild | ( | CView * | pView | ) | const [virtual, inherited] |
check if pView is a child view of this container
pView | the view which should be checked if it is a child of this container |
Reimplemented in CScrollView.
bool isDirty | ( | ) | const [virtual, inherited] |
check if view is dirty
Reimplemented from CView.
virtual bool isTypeOf | ( | const char * | s | ) | const [inline, virtual, inherited] |
bool isVisible | ( | ) | const [inline, inherited] |
get visibility state
conversion from local view coordinates to frame coordinates
point | location |
Reimplemented from CView.
void looseFocus | ( | ) | [virtual, inherited] |
called if view should loose focus
Reimplemented from CView.
void modifyDrawContext | ( | CCoord | save[4], | |
CDrawContext * | pContext | |||
) | [inherited] |
void mouse | ( | CDrawContext * | pContext, | |
CPoint & | where, | |||
long | buttons = -1 | |||
) | [virtual, inherited] |
virtual CView* newCopy | ( | ) | const [inline, virtual, inherited] |
virtual CMessageResult notify | ( | CBaseObject * | sender, | |
const char * | message | |||
) | [inline, virtual, inherited] |
CMessageResult notify | ( | CBaseObject * | sender, | |
const char * | message | |||
) | [virtual, inherited] |
sender | message sender | |
message | message text |
Reimplemented from CView.
Reimplemented in CDataBrowser.
void onDragEnter | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [virtual, inherited] |
called if a drag is entering this view
Reimplemented from CView.
void onDragLeave | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [virtual, inherited] |
called if a drag is leaving this view
Reimplemented from CView.
void onDragMove | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [virtual, inherited] |
called if a drag is moved inside this view
Reimplemented from CView.
bool onDrop | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [virtual, inherited] |
called if a drag is dropped onto this view
Reimplemented from CView.
long onKeyDown | ( | VstKeyCode & | keyCode | ) | [virtual, inherited] |
long onKeyUp | ( | VstKeyCode & | keyCode | ) | [virtual, inherited] |
CMouseEventResult onMouseDown | ( | CPoint & | where, | |
const long & | buttons | |||
) | [virtual, inherited] |
called when a mouse down event occurs
where | mouse location of mouse down | |
buttons | button and modifier state |
Reimplemented from CView.
Reimplemented in CFrame.
virtual CMouseEventResult onMouseEntered | ( | CPoint & | where, | |
const long & | buttons | |||
) | [inline, virtual, inherited] |
called when the mouse enters this view
virtual CMouseEventResult onMouseExited | ( | CPoint & | where, | |
const long & | buttons | |||
) | [inline, virtual, inherited] |
called when the mouse leaves this view
Reimplemented in CFrame.
CMouseEventResult onMouseMoved | ( | CPoint & | where, | |
const long & | buttons | |||
) | [virtual, inherited] |
called when a mouse move event occurs
where | mouse location of mouse move | |
buttons | button and modifier state |
Reimplemented from CView.
Reimplemented in CFrame.
CMouseEventResult onMouseUp | ( | CPoint & | where, | |
const long & | buttons | |||
) | [virtual, inherited] |
called when a mouse up event occurs
where | mouse location of mouse up | |
buttons | button and modifier state |
Reimplemented from CView.
Reimplemented in CFrame.
bool onWheel | ( | const CPoint & | where, | |
const CMouseWheelAxis & | axis, | |||
const float & | distance, | |||
const long & | buttons | |||
) | [virtual, inherited] |
called if a mouse wheel event is happening over this view
where | location | |
axis | mouse wheel axis | |
distance | wheel distance | |
buttons | button and modifier state |
Reimplemented from CView.
Reimplemented in CScrollView, and CFrame.
bool onWheel | ( | const CPoint & | where, | |
const float & | distance, | |||
const long & | buttons | |||
) | [virtual, inherited] |
void parentSizeChanged | ( | ) | [virtual, inherited] |
notification that one of the views parent has changed its size
Reimplemented from CView.
virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
bool removeAll | ( | const bool & | withForget = true |
) | [virtual, inherited] |
remove all child views
withForget | bool to indicate if the view's reference counter should be decreased after removed from the container |
Reimplemented in CScrollView, and CFrame.
bool removeAllTabs | ( | ) | [virtual] |
remove all tabs
bool removeAttribute | ( | const CViewAttributeID | id | ) | [inherited] |
remove an attribute
bool removed | ( | CView * | parent | ) | [virtual, inherited] |
view is removed from parent view
parent | parent view |
bool removed | ( | CView * | parent | ) | [virtual, inherited] |
bool removeTab | ( | CView * | view | ) | [virtual] |
remove a tab
bool removeView | ( | CView * | pView, | |
const bool & | withForget = true | |||
) | [virtual, inherited] |
remove a child view
pView | the view which should be removed from the container | |
withForget | bool to indicate if the view's reference counter should be decreased after removed from the container |
Reimplemented in CScrollView, and CFrame.
void restoreDrawContext | ( | CDrawContext * | pContext, | |
CCoord | save[4] | |||
) | [inherited] |
bool selectTab | ( | long | index | ) | [virtual] |
select tab at index
bool setAttribute | ( | const CViewAttributeID | id, | |
const long | inSize, | |||
const void * | inData | |||
) | [inherited] |
set an attribute
copies data into the attribute. If it does not exist, creates a new attribute.
id | the ID of the Attribute | |
inSize | the size of the outData pointer | |
inData | a pointer to the data |
virtual void setAutosizeFlags | ( | long | flags | ) | [inline, virtual, inherited] |
set autosize flags
void setBackground | ( | CBitmap * | background | ) | [virtual, inherited] |
set the background image of this view
background | new background bitmap |
void setBackgroundColor | ( | const CColor | color | ) | [virtual, inherited] |
set the background color (will only be drawn if this container is not set to transparent and does not have a background bitmap)
color | the new background color of the container |
virtual void setBackgroundOffset | ( | const CPoint & | p | ) | [inline, virtual, inherited] |
set the offset of the background bitmap
void setCurrentChild | ( | CTabChildView * | childView | ) | [protected] |
virtual void setDirty | ( | const bool | val = true |
) | [inline, virtual, inherited] |
virtual DEPRECATED_ATTRIBUTE void setFrame | ( | CFrame * | pParent | ) | [inline, virtual, inherited] |
virtual void setMouseableArea | ( | const CRect & | rect | ) | [inline, virtual, inherited] |
set the area in which the view reacts to the mouse
virtual void setMouseEnabled | ( | const bool | bEnable = true |
) | [inline, virtual, inherited] |
turn on/off mouse usage for this view
virtual DEPRECATED_ATTRIBUTE void setParentView | ( | CView * | pParentView | ) | [inline, virtual, inherited] |
void setTabFontStyle | ( | const CFontRef | font, | |
CCoord | fontSize = 12 , |
|||
CColor | selectedColor = kBlackCColor , |
|||
CColor | deselectedColor = kWhiteCColor | |||
) | [virtual] |
call this after the tabs are added. Tabs added after this call will have the default font style.
virtual void setTransparency | ( | bool | val | ) | [inline, virtual, inherited] |
set views transparent state
Reimplemented in CScrollView.
void setViewSize | ( | CRect & | rect, | |
bool | invalid = true | |||
) | [virtual] |
rect | the new size of the container | |
invalid | the views to dirty |
Reimplemented from CViewContainer.
void setVisible | ( | bool | state | ) | [virtual, inherited] |
set visibility state
virtual void setWantsFocus | ( | bool | state | ) | [inline, virtual, inherited] |
set focus support on/off
void takeFocus | ( | ) | [virtual, inherited] |
called if view should take focus
Reimplemented from CView.
void useOffscreen | ( | bool | b | ) | [virtual, inherited] |
turn on/off using an offscreen. Not necessary with GDI+ on Windows, or on Mac OS X.
virtual void valueChanged | ( | VSTGUI::CControl * | pControl | ) | [pure virtual, inherited] |
void valueChanged | ( | CControl * | pControl | ) | [virtual] |
virtual bool wantsFocus | ( | ) | const [inline, virtual, inherited] |
check if view supports focus
long autosizeFlags [protected, inherited] |
CColor backgroundColor [protected, inherited] |
CPoint backgroundOffset [protected, inherited] |
bool bDirty [protected, inherited] |
bool bDrawInOffscreen [protected, inherited] |
bool bIsAttached [protected, inherited] |
bool bMouseEnabled [protected, inherited] |
bool bTransparencyEnabled [protected, inherited] |
bool bVisible [protected, inherited] |
bool bWantsFocus [protected, inherited] |
CTabChildView* currentChild [protected] |
CView* currentDragView [protected, inherited] |
long currentTab [protected] |
CTabChildView* firstChild [protected] |
CTabChildView* lastChild [protected] |
CRect mouseableArea [protected, inherited] |
CView* mouseDownView [protected, inherited] |
long numberOfChilds [protected] |
CAttributeListEntry* pAttributeList [protected, inherited] |
CBitmap* pBackground [protected, inherited] |
CCView* pFirstView [protected, inherited] |
CCView* pLastView [protected, inherited] |
COffscreenContext* pOffscreenContext [protected, inherited] |
CFrame* pParentFrame [protected, inherited] |
CView* pParentView [protected, inherited] |
long style [protected] |
TabPosition tabPosition [protected] |