20 mContentAlign(
Align::Center),
28 Base::initialiseOverride();
71 Base::shutdownOverride();
76 Base::setPosition(_point);
88 Base::setCoord(_coord);
101 point.
top = -(int)_position;
107 point.
left = -(int)_position;
120 int offset = -point.
top;
124 if (offset < 0) offset = 0;
127 if (offset != point.
top)
140 int offset = -point.
left;
144 if (offset < 0) offset = 0;
147 if (offset != point.
left)
149 point.
left = -offset;
159 IntSize ScrollView::getContentSize()
164 IntPoint ScrollView::getContentPosition()
169 void ScrollView::setContentPosition(
const IntPoint& _point)
175 IntSize ScrollView::getViewSize()
180 size_t ScrollView::getVScrollPage()
185 size_t ScrollView::getHScrollPage()
229 if (_key ==
"VisibleVScroll")
233 else if (_key ==
"VisibleHScroll")
237 else if (_key ==
"CanvasAlign")
241 else if (_key ==
"CanvasSize")
246 Base::setPropertyOverride(_key, _value);
288 Align ScrollView::getContentAlign()
303 value.
left = -(int)mHRange;
319 value.
top = currentOffset.
top;