summaryrefslogtreecommitdiff
path: root/src/user/raleigh/w/multicontainer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/raleigh/w/multicontainer.cpp')
-rw-r--r--src/user/raleigh/w/multicontainer.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/user/raleigh/w/multicontainer.cpp b/src/user/raleigh/w/multicontainer.cpp
index edc60aa..d713f51 100644
--- a/src/user/raleigh/w/multicontainer.cpp
+++ b/src/user/raleigh/w/multicontainer.cpp
@@ -39,4 +39,20 @@ namespace raleigh {
set_size(determine_size());
set_child_offsets();
}
+
+ void multicontainer::add_end(widget &n) {
+ widgets.add_back(n);
+ set_size(determine_size());
+ set_child_offsets();
+ if (w)
+ w->notify_needs_paint(*this);
+ }
+
+ void multicontainer::add_start(widget &n) {
+ widgets.add_front(n);
+ set_size(determine_size());
+ set_child_offsets();
+ if (w)
+ w->notify_needs_paint(*this);
+ }
} \ No newline at end of file