-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2009-2011 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
#ifndef MSP_GLTK_CONTAINER_H_
#define MSP_GLTK_CONTAINER_H_
#include <list>
+#include <stdexcept>
#include <sigc++/trackable.h>
#include "widget.h"
namespace Msp {
namespace GLtk {
+class hierarchy_error: public std::logic_error
+{
+public:
+ hierarchy_error(const std::string &);
+ virtual ~hierarchy_error() throw() { }
+};
+
+
class Container: virtual public Widget
{
protected:
virtual void pointer_leave();
protected:
virtual void on_reparent();
+ virtual void on_child_added(Widget &) { }
+ virtual void on_child_removed(Widget &) { }
};
} // namespace GLtk