20 mContentAlign(
Align::Center)
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")
260 Align ScrollView::getContentAlign()
const
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