mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-23 00:40:04 +00:00
Add View::attachedWidget() member function
This commit is contained in:
parent
a6a383ebc8
commit
99ca9f175e
@ -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();
|
||||
|
@ -27,6 +27,8 @@ public:
|
||||
ScrollBar* getVerticalBar() { return &m_scrollbar_v; }
|
||||
|
||||
void attachToView(Widget* viewableWidget);
|
||||
Widget* attachedWidget();
|
||||
|
||||
void hideScrollBars();
|
||||
void showScrollBars();
|
||||
void makeVisibleAllScrollableArea();
|
||||
|
Loading…
x
Reference in New Issue
Block a user