40 mContentAlign(
Align::Center)
48 Base::_initialise(_style, _coord, _align, _info, _parent, _croppedParent, _creator, _name);
50 initialiseWidgetSkin(_info);
62 initialiseWidgetSkin(_info);
65 void ScrollView::initialiseWidgetSkin(
ResourceSkin* _info)
72 if (*(*iter)->_getInternalData<std::string>() ==
"Client")
87 else if (*(*iter)->_getInternalData<std::string>() ==
"VScroll")
93 else if (*(*iter)->_getInternalData<std::string>() ==
"HScroll")
106 void ScrollView::shutdownWidgetSkin()
193 point.
top = -(int)_position;
199 point.
left = -(int)_position;
212 int offset = -point.
top;
216 if (offset < 0) offset = 0;
219 if (offset != point.
top)
232 int offset = -point.
left;
236 if (offset < 0) offset = 0;
239 if (offset != point.
left)
241 point.
left = -offset;
258 IntSize ScrollView::getContentSize()
263 IntPoint ScrollView::getContentPosition()
268 void ScrollView::setContentPosition(
const IntPoint& _point)
274 IntSize ScrollView::getViewSize()
const
279 size_t ScrollView::getVScrollPage()
284 size_t ScrollView::getHScrollPage()
321 if (_key ==
"ScrollView_VisibleVScroll")
setVisibleVScroll(utility::parseValue<bool>(_value));
322 else if (_key ==
"ScrollView_VisibleHScroll")
setVisibleHScroll(utility::parseValue<bool>(_value));
323 else if (_key ==
"ScrollView_CanvasAlign")
setCanvasAlign(utility::parseValue<Align>(_value));
324 else if (_key ==
"ScrollView_CanvasSize")
setCanvasSize(utility::parseValue<IntSize>(_value));
326 #ifndef MYGUI_DONT_USE_OBSOLETE
327 else if (_key ==
"ScrollView_VScroll")
329 MYGUI_LOG(Warning,
"ScrollView_VScroll is obsolete, use ScrollView_VisibleVScroll");
332 else if (_key ==
"ScrollView_HScroll")
334 MYGUI_LOG(Warning,
"ScrollView_HScroll is obsolete, use ScrollView_VisibleHScroll");
337 #endif // MYGUI_DONT_USE_OBSOLETE