21 enum ScrollbarDirection {
34 virtual void setScrollSize (
const CRect& ssize);
35 virtual void setStep (
float newStep) { stepValue = newStep; }
37 CRect& getScrollSize (
CRect& rect)
const { rect = scrollSize;
return rect; }
38 float getStep ()
const {
return stepValue; }
40 virtual void setFrameColor (
const CColor& color) { frameColor = color; }
41 virtual void setScrollerColor (
const CColor& color) { scrollerColor = color; }
42 virtual void setBackgroundColor (
const CColor& color) { backgroundColor = color; }
44 CColor getFrameColor ()
const {
return frameColor; }
45 CColor getScrollerColor ()
const {
return scrollerColor; }
46 CColor getBackgroundColor ()
const {
return backgroundColor; }
48 bool getOverlayStyle ()
const {
return overlayStyle; }
49 virtual void setOverlayStyle (
bool state);
51 virtual void onVisualChange ();
52 CRect getScrollerRect ();
57 bool onWheel (
const CPoint& where,
const CMouseWheelAxis& axis,
const float& distance,
const CButtonState& buttons)
override;
62 CMessageResult notify (
CBaseObject* sender, IdStringPtr message)
override;
76 void calculateScrollerLength ();
79 ScrollbarDirection direction;
84 CCoord scrollerLength;
106 virtual void drawScrollbarBackground (
CDrawContext* pContext,
const CRect& size, CScrollbar::ScrollbarDirection direction,
CScrollbar* bar) = 0;
107 virtual void drawScrollbarScroller (
CDrawContext* pContext,
const CRect& size, CScrollbar::ScrollbarDirection direction,
CScrollbar* bar) = 0;
113 #endif // __cscrollbar__
Rect structure.
Definition: crect.h:17
Definition: xmlparse.c:181
Definition: vstguibase.h:299
A drawing context encapsulates the drawing context of the underlying OS.
Definition: cdrawcontext.h:29
Base Object with reference counter.
Definition: vstguibase.h:276
RGBA Color structure.
Definition: ccolor.h:15
Definition: customcontrols.cpp:8
base class of all VSTGUI controls
Definition: ccontrol.h:76
virtual void invalid()
mark whole view as invalid
Definition: cview.h:63
Point structure.
Definition: cpoint.h:17
Definition: icontrollistener.h:14