|
VSTGUI
3.6
|
a slider control More...
#include <vstcontrols.h>
Inheritance diagram for CSlider:Public Member Functions | |
| virtual | ~CSlider () |
| virtual void | draw (CDrawContext *) |
| called if the view should draw itself More... | |
| virtual void | mouse (CDrawContext *pContext, CPoint &where, long button=-1) |
| virtual CMouseEventResult | onMouseDown (CPoint &where, const long &buttons) |
| called when a mouse down event occurs More... | |
| virtual CMouseEventResult | onMouseUp (CPoint &where, const long &buttons) |
| called when a mouse up event occurs More... | |
| virtual CMouseEventResult | onMouseMoved (CPoint &where, const long &buttons) |
| called when a mouse move event occurs More... | |
| virtual bool | onWheel (const CPoint &where, const float &distance, const long &buttons) |
| called if a mouse wheel event is happening over this view More... | |
| virtual long | onKeyDown (VstKeyCode &keyCode) |
| called if a key down event occurs and this view has focus More... | |
| virtual bool | isTypeOf (const char *s) const |
| virtual CView * | newCopy () const |
| 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 More... | |
| void | setDirty (const bool val=true) |
| set the view to dirty so that it is redrawn in the next idle. Thread Safe ! More... | |
| bool | isDoubleClick () |
| virtual void | setBackground (CBitmap *background) |
| set the background image of this view More... | |
| virtual CBitmap * | getBackground () const |
| get the background image of this view More... | |
| virtual void | setTransparency (bool val) |
| set views transparent state More... | |
| virtual bool | getTransparency () const |
| get views transparent state More... | |
| virtual bool | removed (CView *parent) |
| view is removed from parent view More... | |
| virtual bool | attached (CView *parent) |
| view is attached to a parent view More... | |
| bool | isAttached () const |
| is view attached to a parentView More... | |
| CMessageResult | notify (CBaseObject *sender, const char *message) |
| virtual void | getMouseLocation (CDrawContext *context, CPoint &point) |
| virtual void | setParentView (CView *pParentView) |
| virtual void | setFrame (CFrame *pParent) |
| virtual void | getFrameTopLeftPos (CPoint &topLeft) const |
Protected Member Functions | |
| void | setViewSize (CRect &rect, bool invalid) |
| set views size More... | |
Protected Attributes | |
| CPoint | offset |
| CPoint | offsetHandle |
| CBitmap * | pHandle |
| long | style |
| CCoord | widthOfSlider |
| CCoord | heightOfSlider |
| CCoord | rangeHandle |
| CCoord | minTmp |
| CCoord | maxTmp |
| CCoord | minPos |
| CCoord | widthControl |
| CCoord | heightControl |
| float | zoomFactor |
| bool | bDrawTransparentEnabled |
| bool | bFreeClick |
| CControlListener * | listener |
| long | tag |
| float | oldValue |
| float | defaultValue |
| float | value |
| float | vmin |
| float | vmax |
| float | wheelInc |
| long | lastTicks |
| CPoint | backOffset |
| 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 |
Value Methods | |
| virtual void | setValue (float val) |
| 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) |
Constructor | |
| CSlider (const CRect &size, CControlListener *listener, long tag, long iMinPos, long iMaxPos, CBitmap *handle, CBitmap *background, const CPoint &offset=CPoint(0, 0), const long style=kLeft|kHorizontal) | |
| CSlider (const CRect &rect, CControlListener *listener, long tag, const CPoint &offsetHandle, long rangeHandle, CBitmap *handle, CBitmap *background, const CPoint &offset=CPoint(0, 0), const long style=kLeft|kHorizontal) | |
| CSlider (const CSlider &slider) | |
CSlider Methods | |
| virtual void | setDrawTransparentHandle (bool val) |
| virtual void | setFreeClick (bool val) |
| virtual bool | getFreeClick () const |
| virtual void | setOffsetHandle (const CPoint &val) |
| virtual CPoint | getOffsetHandle () const |
| virtual void | setOffset (const CPoint &val) |
| virtual CPoint | getOffset () const |
| virtual long | getStyle () const |
| virtual void | setHandle (CBitmap *pHandle) |
| virtual CBitmap * | getHandle () const |
| virtual void | setZoomFactor (float val) |
| virtual float | getZoomFactor () const |
Reference Counting Methods | |
| virtual void | forget () |
| decrease refcount and delete object if refcount == 0 More... | |
| virtual void | remember () |
| increase refcount More... | |
| long | getNbReference () const |
| get refcount More... | |
Draw and Update Methods | |
| virtual void | drawRect (CDrawContext *pContext, const CRect &updateRect) |
| called if the view should draw itself More... | |
| virtual bool | checkUpdate (const CRect &updateRect) const |
| virtual void | invalidRect (const CRect rect) |
| mark rect as invalid More... | |
| virtual void | invalid () |
| mark whole view as invalid More... | |
| virtual void | setVisible (bool state) |
| set visibility state More... | |
| bool | isVisible () const |
| get visibility state More... | |
Mouse Methods | |
| virtual CMouseEventResult | onMouseEntered (CPoint &where, const long &buttons) |
| called when the mouse enters this view More... | |
| virtual CMouseEventResult | onMouseExited (CPoint &where, const long &buttons) |
| called when the mouse leaves this view More... | |
| virtual bool | hitTest (const CPoint &where, const long buttons=-1) |
| check if where hits this view More... | |
| 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 More... | |
| virtual void | setMouseEnabled (const bool bEnable=true) |
| turn on/off mouse usage for this view More... | |
| virtual bool | getMouseEnabled () const |
| get the state of wheather this view uses the mouse or not More... | |
| virtual void | setMouseableArea (const CRect &rect) |
| set the area in which the view reacts to the mouse More... | |
| virtual CRect & | getMouseableArea (CRect &rect) const |
| get the area in which the view reacts to the mouse More... | |
| virtual const CRect & | getMouseableArea () const |
| read only access to the mouseable area More... | |
Drag & Drop Methods | |
| virtual bool | onDrop (CDragContainer *drag, const CPoint &where) |
| called if a drag is dropped onto this view More... | |
| virtual void | onDragEnter (CDragContainer *drag, const CPoint &where) |
| called if a drag is entering this view More... | |
| virtual void | onDragLeave (CDragContainer *drag, const CPoint &where) |
| called if a drag is leaving this view More... | |
| virtual void | onDragMove (CDragContainer *drag, const CPoint &where) |
| called if a drag is moved inside this view More... | |
Keyboard Methods | |
| virtual long | onKeyUp (VstKeyCode &keyCode) |
| called if a key up event occurs and this view has focus More... | |
View Size Methods | |
| CCoord | getHeight () const |
| get the height of the view More... | |
| CCoord | getWidth () const |
| get the width of the view More... | |
| virtual CRect & | getViewSize (CRect &rect) const |
| returns the current view size More... | |
| virtual const CRect & | getViewSize () const |
| read only access to view size More... | |
| virtual CRect | getVisibleSize () const |
| returns the visible size of the view More... | |
| virtual void | parentSizeChanged () |
| notification that one of the views parent has changed its size More... | |
| virtual CPoint & | frameToLocal (CPoint &point) const |
| conversion from frame coordinates to local view coordinates More... | |
| virtual CPoint & | localToFrame (CPoint &point) const |
| conversion from local view coordinates to frame coordinates More... | |
| virtual void | setAutosizeFlags (long flags) |
| set autosize flags More... | |
| virtual long | getAutosizeFlags () const |
| get autosize flags More... | |
Focus Methods | |
| virtual void | looseFocus () |
| called if view should loose focus More... | |
| virtual void | takeFocus () |
| called if view should take focus More... | |
| virtual bool | wantsFocus () const |
| check if view supports focus More... | |
| virtual void | setWantsFocus (bool state) |
| set focus support on/off More... | |
Attribute Methods | |
| bool | getAttributeSize (const CViewAttributeID id, long &outSize) const |
| get the size of an attribute More... | |
| bool | getAttribute (const CViewAttributeID id, const long inSize, void *outData, long &outSize) const |
| get an attribute More... | |
| bool | setAttribute (const CViewAttributeID id, const long inSize, const void *inData) |
| set an attribute More... | |
| bool | removeAttribute (const CViewAttributeID id) |
| remove an attribute More... | |
Parent Methods | |
| CView * | getParentView () const |
| get parent view More... | |
| CFrame * | getFrame () const |
| get frame More... | |
| virtual VSTGUIEditorInterface * | getEditor () const |
| get editor More... | |
a slider control
Define a slider with a given background and handle. The range of variation of the handle should be defined. By default the handler is drawn with transparency. By clicking Alt+Left Mouse the default value is used.
| CSlider | ( | const CRect & | rect, |
| CControlListener * | listener, | ||
| long | tag, | ||
| long | iMinPos, | ||
| long | iMaxPos, | ||
| CBitmap * | handle, | ||
| CBitmap * | background, | ||
| const CPoint & | offset = CPoint (0, 0), |
||
| const long | style = kLeft|kHorizontal |
||
| ) |
CSlider constructor.
| rect | the size of this view |
| listener | the listener |
| tag | the control tag |
| iMinPos | min position in pixel |
| iMaxPos | max position in pixel |
| handle | bitmap of the slider |
| background | bitmap of the background |
| offset | offset of the background |
| style | style (kBottom,kRight,kTop,kLeft,kHorizontal,kVertical) |
| CSlider | ( | const CRect & | rect, |
| CControlListener * | listener, | ||
| long | tag, | ||
| const CPoint & | offsetHandle, | ||
| long | _rangeHandle, | ||
| CBitmap * | handle, | ||
| CBitmap * | background, | ||
| const CPoint & | offset = CPoint (0, 0), |
||
| const long | style = kLeft|kHorizontal |
||
| ) |
CSlider constructor.
| rect | the size of this view |
| listener | the listener |
| tag | the control tag |
| offsetHandle | handle offset |
| _rangeHandle | size of handle range |
| handle | bitmap of the slider |
| background | bitmap of the background |
| offset | offset of the background |
| style | style (kBottom,kRight,kTop,kLeft,kHorizontal,kVertical) |
|
virtual |
|
virtualinherited |
view is attached to a parent view
| parent | parent view |
Reimplemented in CViewContainer, CVuMeter, and CDataBrowser.
|
virtualinherited |
|
virtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
|
virtualinherited |
|
inlinevirtualinherited |
|
virtual |
called if the view should draw itself
| pContext | draw context in which to draw |
Implements CControl.
|
inlinevirtualinherited |
called if the view should draw itself
Reimplemented in CFrame, and CViewContainer.
|
virtualinherited |
|
inlinevirtualinherited |
decrease refcount and delete object if refcount == 0
Reimplemented in CDrawContext.
conversion from frame coordinates to local view coordinates
| point | location |
Reimplemented in CViewContainer.
|
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 |
|
inherited |
get the size of an attribute
| id | the ID of the Attribute |
| outSize | on return the size of the attribute |
|
inlinevirtualinherited |
get autosize flags
|
inlinevirtualinherited |
get the background image of this view
|
inlinevirtualinherited |
|
virtualinherited |
get editor
Reimplemented in CFrame.
|
inlineinherited |
get frame
|
virtualinherited |
|
inlinevirtual |
|
inlinevirtual |
|
inlineinherited |
get the height of the view
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
get the area in which the view reacts to the mouse
|
inlinevirtualinherited |
read only access to the mouseable area
|
inlinevirtualinherited |
get the state of wheather this view uses the mouse or not
|
virtualinherited |
|
inlineinherited |
get refcount
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlineinherited |
get parent view
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
get views transparent state
|
inlinevirtualinherited |
returns the current view size
|
inlinevirtualinherited |
read only access to view size
|
virtualinherited |
returns the visible size of the view
|
inlinevirtualinherited |
|
inlineinherited |
get the width of the view
|
inlinevirtual |
|
inlinevirtualinherited |
check if where hits this view
Reimplemented in CViewContainer, and CSplashScreen.
|
inlinevirtualinherited |
mark whole view as invalid
Reimplemented in CFrame, and CViewContainer.
|
virtualinherited |
|
inlineinherited |
is view attached to a parentView
|
virtualinherited |
|
inherited |
|
inlinevirtual |
Reimplemented from CControl.
|
inlineinherited |
get visibility state
conversion from local view coordinates to frame coordinates
| point | location |
Reimplemented in CViewContainer.
|
virtualinherited |
called if view should loose focus
Reimplemented in CViewContainer, COptionMenu, and CTextEdit.
|
virtual |
Reimplemented from CView.
|
virtualinherited |
| sender | message sender |
| message | message text |
Reimplemented from CBaseObject.
Reimplemented in CViewContainer.
|
inlinevirtualinherited |
called if a drag is entering this view
Reimplemented in CViewContainer.
|
inlinevirtualinherited |
called if a drag is leaving this view
Reimplemented in CViewContainer.
|
inlinevirtualinherited |
called if a drag is moved inside this view
Reimplemented in CViewContainer.
|
inlinevirtualinherited |
called if a drag is dropped onto this view
Reimplemented in CViewContainer.
|
virtual |
called if a key down event occurs and this view has focus
| keyCode | key code of pressed key |
Reimplemented from CView.
|
virtualinherited |
called if a key up event occurs and this view has focus
| keyCode | key code of pressed key |
Reimplemented in CFrame, and CViewContainer.
|
virtual |
called when a mouse down event occurs
| where | mouse location of mouse down |
| buttons | button and modifier state |
Reimplemented from CView.
|
inlinevirtualinherited |
called when the mouse enters this view
|
inlinevirtualinherited |
called when the mouse leaves this view
Reimplemented in CFrame.
|
virtual |
called when a mouse move event occurs
| where | mouse location of mouse move |
| buttons | button and modifier state |
Reimplemented from CView.
|
virtual |
called when a mouse up event occurs
| where | mouse location of mouse up |
| buttons | button and modifier state |
Reimplemented from CView.
|
virtual |
called if a mouse wheel event is happening over this view
| where | location |
| distance | wheel distance |
| buttons | button and modifier state |
Reimplemented from CView.
|
virtualinherited |
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 CFrame, CViewContainer, CScrollbar, and CScrollView.
|
inlinevirtualinherited |
notification that one of the views parent has changed its size
Reimplemented in CViewContainer, and CTextEdit.
|
inlinevirtualinherited |
increase refcount
|
inherited |
remove an attribute
|
virtualinherited |
view is removed from parent view
| parent | parent view |
Reimplemented in CViewContainer, and CVuMeter.
|
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 |
|
inlinevirtualinherited |
set autosize flags
|
virtualinherited |
set the background image of this view
| background | new background bitmap |
|
virtualinherited |
|
inlinevirtualinherited |
|
virtualinherited |
|
inlinevirtual |
|
inlinevirtualinherited |
|
inlinevirtual |
|
virtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
set the area in which the view reacts to the mouse
|
inlinevirtualinherited |
turn on/off mouse usage for this view
|
inlinevirtual |
|
virtual |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
|
inlinevirtualinherited |
set views transparent state
Reimplemented in CScrollView.
|
inlinevirtualinherited |
Reimplemented in COptionMenu.
|
protectedvirtual |
set views size
| newSize | rect of new size of view |
| invalid | if true set view dirty |
Reimplemented from CView.
|
virtualinherited |
set visibility state
|
inlinevirtualinherited |
set focus support on/off
|
inlinevirtualinherited |
|
inlinevirtual |
|
virtualinherited |
called if view should take focus
Reimplemented in CViewContainer, COptionMenu, and CTextEdit.
|
inlinevirtualinherited |
check if view supports focus
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
|
protectedinherited |
|
protected |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protected |
|
protected |
|
protected |
1.8.7