gui updates
This commit is contained in:
parent
a55a5ec5cc
commit
4a557d7e5c
42 changed files with 1179 additions and 962 deletions
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
namespace tp {
|
||||
|
||||
template <typename Events, typename Canvas>
|
||||
class SimpleWidget : public CollapsableMenu<Events, Canvas> {
|
||||
class SimpleWidget : public CollapsableMenu {
|
||||
public:
|
||||
SimpleWidget() {
|
||||
this->addWidgetToMenu(&mInMenuButton1);
|
||||
|
|
@ -17,30 +16,29 @@ namespace tp {
|
|||
}
|
||||
|
||||
private:
|
||||
ButtonWidget<EventHandler, Canvas> mInMenuButton1;
|
||||
ButtonWidget<EventHandler, Canvas> mInMenuButton2;
|
||||
ButtonWidget mInMenuButton1;
|
||||
ButtonWidget mInMenuButton2;
|
||||
|
||||
LabelWidget<EventHandler, Canvas> mLabel;
|
||||
NamedSliderWidget<EventHandler, Canvas> mSlider;
|
||||
LabelWidget mLabel;
|
||||
NamedSliderWidget mSlider;
|
||||
};
|
||||
|
||||
template <typename Events, typename Canvas>
|
||||
class SimpleWidget2 : public Widget<Events, Canvas> {
|
||||
class SimpleWidget2 : public Widget {
|
||||
public:
|
||||
SimpleWidget2() {
|
||||
this->mChildWidgets.pushBack(&mFloating);
|
||||
mFloating.addWidgetToMenu(&mWidget);
|
||||
mFloating.addWidgetToMenu(&mWidget2);
|
||||
|
||||
|
||||
// this->mChildWidgets.pushBack(&mFloating2);
|
||||
// mFloating2.addWidgetToMenu(&mWidget2);
|
||||
}
|
||||
|
||||
private:
|
||||
FloatingWidget<EventHandler, Canvas> mFloating;
|
||||
SimpleWidget<EventHandler, Canvas> mWidget;
|
||||
FloatingWidget mFloating;
|
||||
SimpleWidget mWidget;
|
||||
|
||||
FloatingWidget<EventHandler, Canvas> mFloating2;
|
||||
SimpleWidget<EventHandler, Canvas> mWidget2;
|
||||
FloatingWidget mFloating2;
|
||||
SimpleWidget mWidget2;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue