20 mContentAlign(
Align::Center)
27 Base::initialiseOverride();
66 Base::shutdownOverride();
71 Base::setPosition(_point);
83 Base::setCoord(_coord);
93 point.
top = -(int)_position;
99 point.
left = -(int)_position;
109 int offset = -point.
top;
113 if (offset < 0) offset = 0;
116 if (offset != point.
top)
129 int offset = -point.
left;
133 if (offset < 0) offset = 0;
136 if (offset != point.
left)
138 point.
left = -offset;
148 IntSize ScrollView::getContentSize()
const
153 IntPoint ScrollView::getContentPosition()
const
158 void ScrollView::setContentPosition(
const IntPoint& _point)
163 IntSize ScrollView::getViewSize()
const
168 size_t ScrollView::getVScrollPage()
const
173 size_t ScrollView::getHScrollPage()
const
216 if (_key ==
"VisibleVScroll")
220 else if (_key ==
"VisibleHScroll")
224 else if (_key ==
"CanvasAlign")
228 else if (_key ==
"CanvasSize")
233 Base::setPropertyOverride(_key, _value);
260 Align ScrollView::getContentAlign()
const
291 value.
top = currentOffset.
top;
IntPoint getPosition() const
const IntCoord & getCoord() const
const int SCROLL_VIEW_MOUSE_WHEEL
types::TCoord< int > IntCoord
const int SCROLL_VIEW_SCROLL_PAGE
types::TSize< int > IntSize
delegates::DelegateFunction< Args... > * newDelegate(void(*_func)(Args... args))
types::TPoint< int > IntPoint