14ScrollPane::ScrollPane()
17 setSkin(m_DefaultSkin);
20Component* ScrollPane::getContent() {
return m_Content; }
21void ScrollPane::setContent(
Component* content) { assert(content); m_Content = content; }
23const Sml::Rectangle<int32_t>& ScrollPane::getViewport()
const {
return m_Viewport; }
24void ScrollPane::setViewport(
const Sml::Rectangle<int32_t>& viewport) { m_Viewport = viewport; }
26int32_t ScrollPane::getViewportX()
const {
return m_Viewport.pos.x; }
27void ScrollPane::setViewportX(int32_t x) { m_Viewport.pos.x = x; }
29int32_t ScrollPane::getViewportY()
const {
return m_Viewport.pos.y; }
30void ScrollPane::setViewportY(int32_t y) { m_Viewport.pos.y = y; }
32int32_t ScrollPane::getViewportWidth()
const {
return m_Viewport.width; }
33void ScrollPane::setViewportWidth(int32_t width) { m_Viewport.width = width; }
35int32_t ScrollPane::getViewportHeight()
const {
return m_Viewport.height; }
36void ScrollPane::setViewportHeight(int32_t height) { m_Viewport.height = height; }