Slider widget
This commit is contained in:
parent
cfb56e184c
commit
cce8f0e1bc
4 changed files with 98 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue