#include <msp/core/refptr.h>
#include "button.h"
#include "column.h"
+#include "draghandle.h"
#include "dropdown.h"
#include "entry.h"
#include "grid.h"
#include "hslider.h"
+#include "image.h"
#include "indicator.h"
#include "label.h"
#include "list.h"
Panel::Panel():
layout(0)
-{ }
+{
+ input_type = INPUT_NAVIGATION;
+}
Panel::~Panel()
{
layout = l;
}
-void Panel::autosize()
+void Panel::autosize_special(const Part &part, Geometry &ageom) const
{
- if(layout)
- layout->autosize();
+ if(part.get_name()=="children" && layout)
+ layout->autosize(ageom);
}
void Panel::render_special(const Part &part, GL::Renderer &renderer) const
add("button", &Loader::child<Button>);
add("column", &Loader::arrangement<Column>);
add("constraint",&Loader::constraint);
+ add("draghandle",&Loader::child<DragHandle>);
add("dropdown", &Loader::child<Dropdown>);
add("entry", &Loader::child<Entry>);
add("expand", &Loader::expand);
add("gravity", &Loader::gravity);
add("grid", &Loader::grid);
add("hslider", &Loader::child<HSlider>);
+ add("image", &Loader::child<Image>);
add("indicator", &Loader::child<Indicator>);
add("label", &Loader::child<Label>);
add("layout", &Loader::layout);