]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/container.h
Strip copyright messages and id tags from individual files
[libs/gltk.git] / source / container.h
index 0384521d4c8657a9a6282618b90f7b6de7dafa38..66884652fc4da3bb80097d90c0f167d05d06ef95 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of libmspgltk
-Copyright © 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef MSP_GLTK_CONTAINER_H_
 #define MSP_GLTK_CONTAINER_H_
 
@@ -39,6 +32,9 @@ public:
 
        void add(Widget &);
        void remove(Widget &);
+protected:
+       virtual Child *create_child(Widget *);
+public:
        std::list<Widget *> get_children() const;
        Widget *get_child_at(int, int);
        Widget *get_descendant_at(int, int);
@@ -48,8 +44,9 @@ public:
        virtual void pointer_motion(int, int);
        virtual void pointer_leave();
 protected:
-       virtual Child *create_child(Widget *);
        virtual void on_reparent();
+       virtual void on_child_added(Widget &) { }
+       virtual void on_child_removed(Widget &) { }
 };
 
 } // namespace GLtk