20 mContentAlign(
Align::Center)
93 point.
top = -(int)_position;
99 point.
left = -(int)_position;
109 int offset = -point.
top;
117 else if (offset > (
int)
mVRange)
120 if (offset != point.
top)
133 int offset = -point.
left;
141 else if (offset > (
int)
mHRange)
144 if (offset != point.
left)
146 point.
left = -offset;
156 IntSize ScrollView::getContentSize()
const
161 IntPoint ScrollView::getContentPosition()
const
166 void ScrollView::setContentPosition(
const IntPoint& _point)
171 IntSize ScrollView::getViewSize()
const
176 size_t ScrollView::getVScrollPage()
const
181 size_t ScrollView::getHScrollPage()
const
224 if (_key ==
"VisibleVScroll")
228 else if (_key ==
"VisibleHScroll")
232 else if (_key ==
"CanvasAlign")
236 else if (_key ==
"CanvasSize")
268 Align ScrollView::getContentAlign()
const
299 value.
top = currentOffset.
top;
IntPoint getPosition() const
const IntCoord & getCoord() const
T parseValue(std::string_view _value)
types::TPoint< int > IntPoint
const int SCROLL_VIEW_MOUSE_WHEEL
types::TCoord< int > IntCoord
types::TSize< int > IntSize
const int SCROLL_VIEW_SCROLL_PAGE
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))