+/* $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"
#include "panel.h"
#include "part.h"
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)
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")
pnl(p),
wdg_map(m)
{
- add("label", &Loader::child<Label>);
- add("panel", &Loader::panel);
+ add("button", &Loader::child<Button>);
+ add("label", &Loader::child<Label>);
+ add("panel", &Loader::panel);
}
template<typename T>