a popup menu control More...
#include <vstcontrols.h>
Public Member Functions | |
virtual | ~COptionMenu () |
virtual void | setValue (float val) |
virtual void | draw (CDrawContext *pContext) |
called if the view should draw itself | |
virtual CMouseEventResult | onMouseDown (CPoint &where, const long &buttons) |
called when a mouse down event occurs | |
virtual void | takeFocus () |
called if view should take focus | |
virtual void | looseFocus () |
called if view should loose focus | |
virtual void | doIdleStuff () |
virtual void | setBackOffset (CPoint &offset) |
virtual void | copyBackOffset () |
virtual void | setWheelInc (float val) |
virtual float | getWheelInc () const |
bool | isDirty () const |
check if view is dirty | |
void | setDirty (const bool val=true) |
set the view to dirty so that it is redrawn in the next idle. Thread Safe ! | |
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 | |
virtual bool | removed (CView *parent) |
view is removed from parent view | |
virtual bool | attached (CView *parent) |
view is attached to a parent view | |
bool | isAttached () const |
is view attached to a parentView | |
virtual bool | isTypeOf (const char *s) const |
virtual CView * | newCopy () const |
CMessageResult | notify (CBaseObject *sender, const char *message) |
virtual DEPRECATED_ATTRIBUTE void | mouse (CDrawContext *pContext, CPoint &where, long buttons=-1) |
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 |
Public Attributes | |
VSTGUI_DEPRECATED(bool isDoubleClick();) protected long | tag |
float | oldValue |
float | defaultValue |
float | value |
float | vmin |
float | vmax |
float | wheelInc |
long | lastTicks |
long | delta |
CPoint | backOffset |
Protected Member Functions | |
COptionMenu * | getItemMenu (long idx, long &idxInMenu, long &offsetIdx) |
void | removeItems () |
void * | appendItems (long &offsetIdx) |
virtual void | drawText (CDrawContext *pContext, const char *string, CBitmap *newBack=0) |
Protected Attributes | |
void * | platformControl |
CMenuItemList * | menuItems |
long | currentIndex |
CBitmap * | bgWhenClick |
long | lastButton |
long | nbItemsPerColumn |
long | lastResult |
long | prefixNumbers |
COptionMenu * | lastMenu |
COptionMenuScheme * | scheme |
void(* | stringConvert )(float value, char *string) |
void(* | stringConvert2 )(float value, char *string, void *userData) |
void(* | string2FloatConvert )(char *string, float &output) |
void * | userData |
CHoriTxtAlign | horiTxtAlign |
long | style |
CFontRef | fontID |
CColor | fontColor |
CColor | backColor |
CColor | frameColor |
CColor | shadowColor |
bool | bTextTransparencyEnabled |
bool | bAntialias |
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 |
Constructor | |
| |
COptionMenu (const CRect &size, CControlListener *listener, long tag, CBitmap *background=0, CBitmap *bgWhenClick=0, const long style=0) | |
COptionMenu (const COptionMenu &menu) | |
COptionMenu Methods | |
| |
virtual CMenuItem * | addEntry (CMenuItem *item, long index=-1) |
add a new entry | |
virtual CMenuItem * | addEntry (COptionMenu *submenu, const char *title) |
add a new submenu entry | |
virtual CMenuItem * | addEntry (const char *title, long index=-1, long itemFlags=CMenuItem::kNoFlags) |
add a new entry | |
virtual CMenuItem * | addSeparator () |
add a new separator entry | |
virtual CMenuItem * | getCurrent () const |
get current entry | |
virtual long | getCurrentIndex (bool countSeparator=false) const |
virtual CMenuItem * | getEntry (long index) const |
get entry at index position | |
virtual long | getNbEntries () const |
get number of entries | |
virtual bool | setCurrent (long index, bool countSeparator=true) |
set current entry | |
virtual bool | removeEntry (long index) |
remove an entry | |
virtual bool | removeAllEntry () |
remove all entries | |
virtual bool | checkEntry (long index, bool state) |
change check state of entry at index | |
virtual bool | checkEntryAlone (long index) |
check entry at index and uncheck every other item | |
virtual bool | isCheckEntry (long index) const |
get check state of entry at index | |
virtual void | setNbItemsPerColumn (long val) |
Windows only. | |
virtual long | getNbItemsPerColumn () const |
Windows only. | |
long | getLastResult () const |
get last index of choosen entry | |
COptionMenu * | getLastItemMenu (long &idxInMenu) const |
get last menu and index of choosen entry | |
VSTGUI_DEPRECATED (void setScheme(COptionMenuScheme *s){scheme=s;}) VSTGUI_DEPRECATED(virtual COptionMenuScheme *getScheme() const | |
virtual void | setPrefixNumbers (long preCount) |
< get menu scheme | |
long | getPrefixNumbers () const |
get prefix numbering | |
COptionMenu * | getSubMenu (long idx) const |
get a submenu | |
CParamDisplay Methods | |
| |
virtual void | setFont (CFontRef fontID) |
const CFontRef | getFont () const |
virtual void | setFontColor (CColor color) |
CColor | getFontColor () const |
virtual void | setBackColor (CColor color) |
CColor | getBackColor () const |
virtual void | setFrameColor (CColor color) |
CColor | getFrameColor () const |
virtual void | setShadowColor (CColor color) |
CColor | getShadowColor () const |
virtual void | setAntialias (bool state) |
bool | getAntialias () const |
virtual void | setHoriAlign (CHoriTxtAlign hAlign) |
CHoriTxtAlign | getHoriAlign () const |
virtual void | setStringConvert (void(*convert)(float value, char *string)) |
virtual void | setStringConvert (void(*convert)(float value, char *string, void *userDta), void *userData) |
virtual void | setString2FloatConvert (void(*convert)(char *string, float &output)) |
virtual void | setStyle (long val) |
long | getStyle () const |
virtual void | setTextTransparency (bool val) |
bool | getTextTransparency () const |
Value Methods | |
| |
virtual float | getValue () const |
virtual void | setMin (float val) |
virtual float | getMin () const |
virtual void | setMax (float val) |
virtual float | getMax () const |
virtual void | setOldValue (float val) |
virtual float | getOldValue (void) const |
virtual void | setDefaultValue (float val) |
virtual float | getDefaultValue (void) const |
virtual void | bounceValue () |
virtual bool | checkDefaultValue (long button) |
Editing Methods | |
| |
virtual void | setTag (long val) |
virtual long | getTag () const |
virtual void | beginEdit () |
virtual void | endEdit () |
virtual CControlListener * | getListener () const |
virtual void | setListener (CControlListener *l) |
Draw and Update Methods | |
| |
virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
called if the view should draw itself | |
virtual bool | checkUpdate (const CRect &updateRect) const |
virtual void | invalidRect (const CRect rect) |
mark rect as invalid | |
virtual void | invalid () |
mark whole view as invalid | |
virtual void | setVisible (bool state) |
set visibility state | |
bool | isVisible () const |
get visibility state | |
Mouse Methods | |
| |
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 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 bool | hitTest (const CPoint &where, const long buttons=-1) |
check if where hits this view | |
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 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 | |
Drag & Drop Methods | |
| |
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 | |
Keyboard Methods | |
| |
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 | |
View Size Methods | |
| |
CCoord | getHeight () const |
get the height of the view | |
CCoord | getWidth () const |
get the width of the view | |
virtual void | setViewSize (CRect &rect, bool invalid=true) |
set views size | |
virtual CRect & | getViewSize (CRect &rect) const |
returns the current view size | |
virtual const CRect & | getViewSize () const |
read only access to view size | |
virtual CRect | getVisibleSize () const |
returns the visible size of the view | |
virtual void | parentSizeChanged () |
notification that one of the views parent has changed its size | |
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 | setAutosizeFlags (long flags) |
set autosize flags | |
virtual long | getAutosizeFlags () const |
get autosize flags | |
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 | |
Message Methods | |
| |
virtual CMessageResult | notify (CBaseObject *sender, const char *message) |
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 popup menu control
Define a rectangle view where a text-value can be displayed with a given font and color. The text-value is centered in the given rect. A bitmap can be used as background, a second bitmap can be used when the option menu is popuped. There are 2 styles with or without a shadowed text. When a mouse click occurs, a popup menu is displayed.
COptionMenu | ( | const CRect & | size, | |
CControlListener * | listener, | |||
long | tag, | |||
CBitmap * | background = 0 , |
|||
CBitmap * | bgWhenClick = 0 , |
|||
const long | style = 0 | |||
) |
COptionMenu constructor.
size | the size of this view | |
listener | the listener | |
tag | the control tag | |
background | the background bitmap | |
bgWhenClick | the background bitmap if the option menu is displayed | |
style | the style of the display (see CParamDisplay for styles) |
COptionMenu | ( | const COptionMenu & | menu | ) |
~COptionMenu | ( | ) | [virtual] |
CMenuItem * addEntry | ( | const char * | title, | |
long | index = -1 , |
|||
long | itemFlags = CMenuItem::kNoFlags | |||
) | [virtual] |
add a new entry
CMenuItem * addEntry | ( | COptionMenu * | submenu, | |
const char * | title | |||
) | [virtual] |
add a new submenu entry
add a new entry
item | menu item to add. Takes ownership of item. | |
index | position of insertation. -1 appends the item |
CMenuItem * addSeparator | ( | ) | [virtual] |
add a new separator entry
void * appendItems | ( | long & | offsetIdx | ) | [protected] |
bool attached | ( | CView * | parent | ) | [virtual, inherited] |
view is attached to a parent view
parent | parent view |
void beginEdit | ( | ) | [virtual, inherited] |
void bounceValue | ( | ) | [virtual, inherited] |
bool checkDefaultValue | ( | long | button | ) | [virtual, inherited] |
bool checkEntry | ( | long | index, | |
bool | state | |||
) | [virtual] |
change check state of entry at index
bool checkEntryAlone | ( | long | index | ) | [virtual] |
check entry at index and uncheck every other item
virtual bool checkUpdate | ( | const CRect & | updateRect | ) | const [inline, virtual, inherited] |
void copyBackOffset | ( | ) | [virtual, inherited] |
virtual void doIdleStuff | ( | ) | [inline, virtual, inherited] |
void draw | ( | CDrawContext * | pContext | ) | [virtual] |
called if the view should draw itself
pContext | draw context in which to draw |
Reimplemented from CParamDisplay.
virtual void drawRect | ( | CDrawContext * | pContext, | |
const CRect & | updateRect | |||
) | [inline, virtual, inherited] |
called if the view should draw itself
Reimplemented in CViewContainer, and CFrame.
void drawText | ( | CDrawContext * | pContext, | |
const char * | string, | |||
CBitmap * | newBack = 0 | |||
) | [protected, virtual, inherited] |
void endEdit | ( | ) | [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 in CViewContainer.
bool getAntialias | ( | ) | const [inline, inherited] |
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
CColor getBackColor | ( | ) | const [inline, inherited] |
virtual CBitmap* getBackground | ( | ) | const [inline, virtual, inherited] |
get the background image of this view
CMenuItem * getCurrent | ( | ) | const [virtual] |
get current entry
long getCurrentIndex | ( | bool | countSeparator = false |
) | const [virtual] |
virtual float getDefaultValue | ( | void | ) | const [inline, virtual, inherited] |
VSTGUIEditorInterface * getEditor | ( | ) | const [virtual, inherited] |
get editor
Reimplemented in CFrame.
CMenuItem * getEntry | ( | long | index | ) | const [virtual] |
get entry at index position
const CFontRef getFont | ( | ) | const [inline, inherited] |
CColor getFontColor | ( | ) | const [inline, inherited] |
CFrame* getFrame | ( | ) | const [inline, inherited] |
get frame
CColor getFrameColor | ( | ) | const [inline, inherited] |
void getFrameTopLeftPos | ( | CPoint & | topLeft | ) | const [virtual, inherited] |
CCoord getHeight | ( | ) | const [inline, inherited] |
get the height of the view
CHoriTxtAlign getHoriAlign | ( | ) | const [inline, inherited] |
COptionMenu * getItemMenu | ( | long | idx, | |
long & | idxInMenu, | |||
long & | offsetIdx | |||
) | [protected] |
COptionMenu * getLastItemMenu | ( | long & | idxInMenu | ) | const |
get last menu and index of choosen entry
long getLastResult | ( | ) | const [inline] |
get last index of choosen entry
virtual CControlListener* getListener | ( | ) | const [inline, virtual, inherited] |
virtual float getMax | ( | ) | const [inline, virtual, inherited] |
virtual float getMin | ( | ) | const [inline, virtual, inherited] |
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 getNbEntries | ( | ) | const [virtual] |
get number of entries
virtual long getNbItemsPerColumn | ( | ) | const [inline, virtual] |
Windows only.
long getNbReference | ( | ) | const [inline, inherited] |
get refcount
virtual float getOldValue | ( | void | ) | const [inline, virtual, inherited] |
CView* getParentView | ( | ) | const [inline, inherited] |
get parent view
long getPrefixNumbers | ( | ) | const [inline] |
get prefix numbering
CColor getShadowColor | ( | ) | const [inline, inherited] |
long getStyle | ( | ) | const [inline, inherited] |
COptionMenu * getSubMenu | ( | long | idx | ) | const |
get a submenu
virtual long getTag | ( | ) | const [inline, virtual, inherited] |
bool getTextTransparency | ( | ) | const [inline, inherited] |
virtual bool getTransparency | ( | ) | const [inline, virtual, inherited] |
get views transparent state
virtual float getValue | ( | ) | const [inline, virtual, inherited] |
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
virtual float getWheelInc | ( | ) | const [inline, virtual, inherited] |
CCoord getWidth | ( | ) | const [inline, inherited] |
get the width of the view
virtual bool hitTest | ( | const CPoint & | where, | |
const long | buttons = -1 | |||
) | [inline, virtual, inherited] |
check if where hits this view
Reimplemented in CSplashScreen, and CViewContainer.
virtual void invalid | ( | ) | [inline, virtual, inherited] |
mark whole view as invalid
Reimplemented in CViewContainer, and CFrame.
void invalidRect | ( | const CRect | rect | ) | [virtual, inherited] |
mark rect as invalid
rect | rect to invalidate |
Reimplemented in CViewContainer, and CFrame.
bool isAttached | ( | ) | const [inline, inherited] |
is view attached to a parentView
bool isCheckEntry | ( | long | index | ) | const [virtual] |
get check state of entry at index
bool isDirty | ( | ) | const [virtual, inherited] |
virtual bool isTypeOf | ( | const char * | s | ) | const [inline, virtual, inherited] |
Reimplemented in CViewContainer, and CFrame.
bool isVisible | ( | ) | const [inline, inherited] |
get visibility state
conversion from local view coordinates to frame coordinates
point | location |
Reimplemented in CViewContainer.
void looseFocus | ( | ) | [virtual] |
called if view should loose focus
Reimplemented from CView.
void mouse | ( | CDrawContext * | pContext, | |
CPoint & | where, | |||
long | buttons = -1 | |||
) | [virtual, inherited] |
Reimplemented in CViewContainer, and CFrame.
virtual CView* newCopy | ( | ) | const [inline, virtual, inherited] |
Reimplemented in CViewContainer, and CFrame.
virtual CMessageResult notify | ( | CBaseObject * | sender, | |
const char * | message | |||
) | [inline, virtual, inherited] |
CMessageResult notify | ( | CBaseObject * | sender, | |
const char * | message | |||
) | [inherited] |
sender | message sender | |
message | message text |
Reimplemented in CDataBrowser, CScrollbar, and CViewContainer.
virtual void onDragEnter | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [inline, virtual, inherited] |
called if a drag is entering this view
Reimplemented in CViewContainer.
virtual void onDragLeave | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [inline, virtual, inherited] |
called if a drag is leaving this view
Reimplemented in CViewContainer.
virtual void onDragMove | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [inline, virtual, inherited] |
called if a drag is moved inside this view
Reimplemented in CViewContainer.
virtual bool onDrop | ( | CDragContainer * | drag, | |
const CPoint & | where | |||
) | [inline, virtual, inherited] |
called if a drag is dropped onto this view
Reimplemented in CViewContainer.
long onKeyDown | ( | VstKeyCode & | keyCode | ) | [virtual, inherited] |
called if a key down event occurs and this view has focus
keyCode | key code of pressed key |
Reimplemented in CKnob, CSlider, CViewContainer, and CFrame.
long onKeyUp | ( | VstKeyCode & | keyCode | ) | [virtual, inherited] |
called if a key up event occurs and this view has focus
keyCode | key code of pressed key |
Reimplemented in CViewContainer, and CFrame.
CMouseEventResult onMouseDown | ( | CPoint & | where, | |
const long & | buttons | |||
) | [virtual] |
called when a mouse down event occurs
where | mouse location of mouse down | |
buttons | button and modifier state |
Reimplemented from CView.
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 in CScrollbar, CKnob, CVerticalSwitch, CHorizontalSwitch, CRockerSwitch, CMovieButton, CSlider, CKickButton, CViewContainer, and 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 in CScrollbar, CKnob, CVerticalSwitch, CHorizontalSwitch, CRockerSwitch, CMovieButton, CSlider, CKickButton, CViewContainer, and 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 in CScrollView, CScrollbar, CViewContainer, and CFrame.
bool onWheel | ( | const CPoint & | where, | |
const float & | distance, | |||
const long & | buttons | |||
) | [virtual, inherited] |
called if a mouse wheel event is happening over this view
where | location | |
distance | wheel distance | |
buttons | button and modifier state |
Reimplemented in CKnob, CRockerSwitch, CSlider, CViewContainer, and CFrame.
virtual void parentSizeChanged | ( | ) | [inline, virtual, inherited] |
notification that one of the views parent has changed its size
Reimplemented in CTextEdit, and CViewContainer.
virtual void remember | ( | ) | [inline, virtual, inherited] |
increase refcount
bool removeAllEntry | ( | ) | [virtual] |
remove all entries
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 removeEntry | ( | long | index | ) | [virtual] |
remove an entry
void removeItems | ( | ) | [protected] |
virtual void setAntialias | ( | bool | state | ) | [inline, virtual, inherited] |
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 setBackColor | ( | CColor | color | ) | [virtual, inherited] |
void setBackground | ( | CBitmap * | background | ) | [virtual, inherited] |
set the background image of this view
background | new background bitmap |
void setBackOffset | ( | CPoint & | offset | ) | [virtual, inherited] |
bool setCurrent | ( | long | index, | |
bool | countSeparator = true | |||
) | [virtual] |
set current entry
virtual void setDefaultValue | ( | float | val | ) | [inline, virtual, inherited] |
void setDirty | ( | const bool | val = true |
) | [virtual, inherited] |
void setFont | ( | CFontRef | fontID | ) | [virtual, inherited] |
void setFontColor | ( | CColor | color | ) | [virtual, inherited] |
virtual DEPRECATED_ATTRIBUTE void setFrame | ( | CFrame * | pParent | ) | [inline, virtual, inherited] |
void setFrameColor | ( | CColor | color | ) | [virtual, inherited] |
void setHoriAlign | ( | CHoriTxtAlign | hAlign | ) | [virtual, inherited] |
virtual void setListener | ( | CControlListener * | l | ) | [inline, virtual, inherited] |
virtual void setMax | ( | float | val | ) | [inline, virtual, inherited] |
virtual void setMin | ( | float | val | ) | [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 void setNbItemsPerColumn | ( | long | val | ) | [inline, virtual] |
Windows only.
virtual void setOldValue | ( | float | val | ) | [inline, virtual, inherited] |
virtual DEPRECATED_ATTRIBUTE void setParentView | ( | CView * | pParentView | ) | [inline, virtual, inherited] |
void setPrefixNumbers | ( | long | preCount | ) | [virtual] |
void setShadowColor | ( | CColor | color | ) | [virtual, inherited] |
void setString2FloatConvert | ( | void(*)(char *string, float &output) | convert | ) | [virtual, inherited] |
void setStringConvert | ( | void(*)(float value, char *string, void *userDta) | convert, | |
void * | userData | |||
) | [virtual, inherited] |
void setStringConvert | ( | void(*)(float value, char *string) | convert | ) | [virtual, inherited] |
void setStyle | ( | long | val | ) | [virtual, inherited] |
virtual void setTag | ( | long | val | ) | [inline, virtual, inherited] |
virtual void setTextTransparency | ( | bool | val | ) | [inline, virtual, inherited] |
virtual void setTransparency | ( | bool | val | ) | [inline, virtual, inherited] |
set views transparent state
Reimplemented in CScrollView.
void setValue | ( | float | val | ) | [virtual] |
Reimplemented from CControl.
void setViewSize | ( | CRect & | newSize, | |
bool | invalid = true | |||
) | [virtual, inherited] |
set views size
newSize | rect of new size of view | |
invalid | if true set view dirty |
Reimplemented in CScrollView, CScrollbar, CTabView, CTextEdit, CSlider, CViewContainer, and CFrame.
void setVisible | ( | bool | state | ) | [virtual, inherited] |
set visibility state
virtual void setWantsFocus | ( | bool | state | ) | [inline, virtual, inherited] |
set focus support on/off
virtual void setWheelInc | ( | float | val | ) | [inline, virtual, inherited] |
void takeFocus | ( | ) | [virtual] |
called if view should take focus
Reimplemented from CView.
VSTGUI_DEPRECATED | ( | ) | const [inline] |
virtual bool wantsFocus | ( | ) | const [inline, virtual, inherited] |
check if view supports focus
long autosizeFlags [protected, inherited] |
CPoint backOffset [inherited] |
bool bAntialias [protected, inherited] |
bool bDirty [protected, inherited] |
CBitmap* bgWhenClick [protected] |
bool bIsAttached [protected, inherited] |
bool bMouseEnabled [protected, inherited] |
bool bTextTransparencyEnabled [protected, inherited] |
bool bTransparencyEnabled [protected, inherited] |
bool bVisible [protected, inherited] |
bool bWantsFocus [protected, inherited] |
long currentIndex [protected] |
float defaultValue [inherited] |
long delta [inherited] |
CColor frameColor [protected, inherited] |
CHoriTxtAlign horiTxtAlign [protected, inherited] |
long lastButton [protected] |
COptionMenu* lastMenu [protected] |
long lastResult [protected] |
long lastTicks [inherited] |
CMenuItemList* menuItems [protected] |
CRect mouseableArea [protected, inherited] |
long nbItemsPerColumn [protected] |
float oldValue [inherited] |
CAttributeListEntry* pAttributeList [protected, inherited] |
CBitmap* pBackground [protected, inherited] |
void* platformControl [protected] |
CFrame* pParentFrame [protected, inherited] |
CView* pParentView [protected, inherited] |
long prefixNumbers [protected] |
COptionMenuScheme* scheme [protected] |
CColor shadowColor [protected, inherited] |
void(* string2FloatConvert)(char *string, float &output) [protected, inherited] |
void(* stringConvert)(float value, char *string) [protected, inherited] |
void(* stringConvert2)(float value, char *string, void *userData) [protected, inherited] |
long style [protected, inherited] |
VSTGUI_DEPRECATED (bool isDoubleClick ();) protected long tag [inherited] |
void* userData [protected, inherited] |
float value [inherited] |
float vmax [inherited] |
float vmin [inherited] |
float wheelInc [inherited] |