Slider widget

This commit is contained in:
IlyaShurupov 2024-10-18 10:03:45 +03:00 committed by Ilya Shurupov
parent b1ba1c2975
commit 03da5e41d6
4 changed files with 98 additions and 1 deletions

View file

@ -13,7 +13,7 @@ using namespace tp;
class WidgetApplication : public Application {
public:
WidgetApplication() {
exampleAll();
exampleBasic();
}
void exampleAll() {
@ -36,6 +36,19 @@ public:
mRootWidget.setRootWidget(&dock);
}
void exampleBasic() {
static Widget widget;
static LabelWidget label;
static SliderWidget slider;
static ButtonWidget button;
widget.addChild(&label);
widget.addChild(&button);
widget.addChild(&slider);
mRootWidget.setRootWidget(&widget);
}
void exampleScrolling() {
static Widget widget;
static Widget content;