7#ifndef MYGUI_SCROLL_VIEW_H_
8#define MYGUI_SCROLL_VIEW_H_
28 void setPosition(
const IntPoint& _point)
override;
30 void setSize(
const IntSize& _size)
override;
32 void setCoord(
const IntCoord& _coord)
override;
34 using Widget::setPosition;
35 using Widget::setSize;
36 using Widget::setCoord;
39 void setVisibleVScroll(
bool _value);
41 bool isVisibleVScroll()
const;
44 void setVisibleHScroll(
bool _value);
46 bool isVisibleHScroll()
const;
49 void setCanvasAlign(Align _value);
51 Align getCanvasAlign()
const;
54 void setCanvasSize(
const IntSize& _value);
56 void setCanvasSize(
int _width,
int _height);
64 void setViewOffset(
const IntPoint& _value);
69 void initialiseOverride()
override;
70 void shutdownOverride()
override;
72 void notifyScrollChangePosition(ScrollBar* _sender,
size_t _position);
73 void notifyMouseWheel(Widget* _sender,
int _rel);
77 void setPropertyOverride(std::string_view _key, std::string_view _value)
override;
79 ScrollBar* getVScroll()
const;
82 IntSize getContentSize()
const override;
83 IntPoint getContentPosition()
const override;
84 IntSize getViewSize()
const override;
85 void setContentPosition(
const IntPoint& _point)
override;
86 size_t getVScrollPage()
const override;
87 size_t getHScrollPage()
const override;
89 Align getContentAlign()
const override;
#define MYGUI_RTTI_DERIVED(DerivedType)
types::TPoint< int > IntPoint
types::TCoord< int > IntCoord
types::TSize< int > IntSize