Add View::attachedWidget() member function

This commit is contained in:
David Capello 2014-04-26 11:33:29 -03:00
parent a6a383ebc8
commit 99ca9f175e
2 changed files with 7 additions and 0 deletions

View File

@ -49,6 +49,11 @@ void View::attachToView(Widget* viewable_widget)
m_viewport.addChild(viewable_widget);
}
Widget* View::attachedWidget()
{
return UI_FIRST_WIDGET(m_viewport.getChildren());
}
void View::makeVisibleAllScrollableArea()
{
Size reqSize = m_viewport.calculateNeededSize();

View File

@ -27,6 +27,8 @@ public:
ScrollBar* getVerticalBar() { return &m_scrollbar_v; }
void attachToView(Widget* viewableWidget);
Widget* attachedWidget();
void hideScrollBars();
void showScrollBars();
void makeVisibleAllScrollableArea();