]> git.tdb.fi Git - libs/gltk.git/blobdiff - source/panel.cpp
Reorder class members
[libs/gltk.git] / source / panel.cpp
index c763e6e811afa5cd63926fb1971f047fb37e5c70..529ec199183d20e1b31cdb3675b3025450fb4ca5 100644 (file)
@@ -1,3 +1,10 @@
+/* $Id$
+
+This file is part of libmspgltk
+Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #include <msp/core/refptr.h>
 #include "button.h"
 #include "label.h"
@@ -24,6 +31,11 @@ Panel::~Panel()
                delete *i;
 }
 
+void Panel::add(Widget &wdg)
+{
+       children.push_back(&wdg);
+}
+
 void Panel::button_press(int x, int y, unsigned btn)
 {
        if(pointer_grab>0)
@@ -89,11 +101,6 @@ void Panel::focus_out()
        set_input_focus(0);
 }
 
-void Panel::add(Widget &wdg)
-{
-       children.push_back(&wdg);
-}
-
 void Panel::render_part(const Part &part) const
 {
        if(part.get_name()=="children")