5 #ifndef __cscrollview__ 6 #define __cscrollview__ 9 #include "cviewcontainer.h" 10 #include "iviewlistener.h" 11 #include "controls/icontrollistener.h" 14 class CScrollContainer;
26 kHorizontalScrollbarFlag,
27 kVerticalScrollbarFlag,
29 kAutoDragScollingFlag,
30 kOverlayScrollbarsFlag,
32 kAutoHideScrollbarsFlag,
34 kLastScrollViewStyleFlag
57 int32_t getStyle ()
const {
return style; }
58 void setStyle (int32_t newStyle);
60 int32_t getActiveScrollbars ()
const {
return activeScrollbarStyle; }
62 CCoord getScrollbarWidth ()
const {
return scrollbarWidth; }
63 void setScrollbarWidth (CCoord width);
65 virtual void setContainerSize (
const CRect& cs,
bool keepVisibleArea =
false);
66 const CRect& getContainerSize ()
const {
return containerSize; }
68 void resetScrollOffset ();
78 bool addView (
CView* pView,
const CRect& mouseableArea,
bool mouseEnabled =
true)
override;
81 bool removeAll (
bool withForget =
true)
override;
85 bool onWheel (
const CPoint& where,
const CMouseWheelAxis& axis,
const float& distance,
const CButtonState& buttons)
override;
86 void valueChanged (
CControl* pControl)
override;
91 CMessageResult notify (
CBaseObject* sender, IdStringPtr message)
override;
97 virtual
void recalculateSubViews ();
99 void viewSizeChanged (
CView* view, const
CRect& oldSize) override;
100 void viewWillDelete (
CView* view) override;
102 CScrollContainer* sc;
107 CCoord scrollbarWidth;
109 int32_t activeScrollbarStyle;
110 bool recalculateSubViewsRecursionGard {
false};
View Listener Interface Adapter.
Definition: iviewlistener.h:45
void invalid() override
mark whole view as invalid
Definition: cviewcontainer.cpp:618
Container Class of CView objects.
Definition: cviewcontainer.h:52
Rect structure.
Definition: crect.h:17
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
Encapsulates various platform depended kinds of bitmaps.
Definition: cbitmap.h:21
Definition: customcontrols.cpp:8
base class of all VSTGUI controls
Definition: ccontrol.h:76
Base Class of all view objects.
Definition: cview.h:44
Point structure.
Definition: cpoint.h:17
Definition: icontrollistener.h:14