35 mContentAlign(
Align::Center),
44 Base::initialiseOverride();
84 Base::shutdownOverride();
89 Base::setPosition(_point);
101 Base::setCoord(_coord);
114 point.
top = -(int)_position;
120 point.
left = -(int)_position;
133 int offset = -point.
top;
137 if (offset < 0) offset = 0;
140 if (offset != point.
top)
153 int offset = -point.
left;
157 if (offset < 0) offset = 0;
160 if (offset != point.
left)
162 point.
left = -offset;
172 IntSize ScrollView::getContentSize()
177 IntPoint ScrollView::getContentPosition()
182 void ScrollView::setContentPosition(
const IntPoint& _point)
188 IntSize ScrollView::getViewSize()
193 size_t ScrollView::getVScrollPage()
198 size_t ScrollView::getHScrollPage()
241 if (_key ==
"VisibleVScroll")
243 else if (_key ==
"VisibleHScroll")
245 else if (_key ==
"CanvasAlign")
247 else if (_key ==
"CanvasSize")
251 Base::setPropertyOverride(_key, _value);
292 Align ScrollView::getContentAlign()
307 value.
left = -(int)mHRange;
323 value.
top = currentOffset.
top;
const IntCoord & getCoord() const
types::TSize< int > IntSize
delegates::IDelegate0 * newDelegate(void(*_func)())
types::TCoord< int > IntCoord
IntPoint getPosition() const
const int SCROLL_VIEW_MOUSE_WHEEL
const int SCROLL_VIEW_SCROLL_PAGE
types::TPoint< int > IntPoint