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)
125 mVScroll->setScrollPosition(offset);
133 int offset = -point.
left;
141 else if (offset > (
int)
mHRange)
144 if (offset != point.
left)
146 point.
left = -offset;
149 mHScroll->setScrollPosition(offset);
166 void ScrollView::setContentPosition(
const IntPoint& _point)
224 if (_key ==
"VisibleVScroll")
228 else if (_key ==
"VisibleHScroll")
232 else if (_key ==
"CanvasAlign")
236 else if (_key ==
"CanvasSize")
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))