diff options
Diffstat (limited to '')
-rw-r--r-- | src/menu/container.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/menu/container.hpp b/src/menu/container.hpp index ac7d6129..f9eeacd5 100644 --- a/src/menu/container.hpp +++ b/src/menu/container.hpp @@ -26,6 +26,7 @@ #define CONTAINER_HPP #include <list> +#include <boost/signals2.hpp> #include <log4cpp/Category.hh> #include "drawable_control.hpp" @@ -51,6 +52,14 @@ namespace usdx Point<int> window_coords; void recalculate_window_coords(void); + /** + * Connection to recieve window coordinate changes from parent + * container. + */ + boost::signals2::connection window_coords_connection; + + void init(Container* parent); + protected: Container(Container*, const ContainerHelper&); @@ -95,6 +104,11 @@ namespace usdx * @see window_coords */ virtual void set_size(int width, int height); + + /** + * This signal gets emitted, if the window coordinates are changed. + */ + boost::signals2::signal<void ()> window_coords_change; }; }; |