There was an error while loading. Please reload this page.
1 parent 3141d10 commit 8717435Copy full SHA for 8717435
1 file changed
visage_ui/scroll_bar.h
@@ -116,8 +116,12 @@ namespace visage {
116
117
void addScrolledChild(Frame* frame, bool make_visible = true) {
118
container_.setVisible(true);
119
- container_.addChild(frame);
120
- frame->setVisible(make_visible);
+ container_.addChild(frame, make_visible);
+ }
121
+
122
+ void addScrolledChild(std::unique_ptr<Frame> frame, bool make_visible = true) {
123
+ container_.setVisible(true);
124
+ container_.addChild(std::move(frame), make_visible);
125
}
126
127
bool scrollUp() {
0 commit comments