Simulant  21.12-1292
A portable game engine for Windows, OSX, Linux, Dreamcast, and PSP
button.h
1 #pragma once
2 
3 #include "../../generic/managed.h"
4 #include "simulant/nodes/stage_node.h"
5 #include "simulant/utils/params.h"
6 #include "widget.h"
7 
8 namespace smlt {
9 namespace ui {
10 
11 class Button: public Widget {
12 
13 public:
14  S_DEFINE_STAGE_NODE_META(STAGE_NODE_TYPE_WIDGET_BUTTON, "button");
15  S_DEFINE_STAGE_NODE_PARAM(Button, "text", std::string, no_value,
16  "The text to display in the button");
17  S_DEFINE_CORE_WIDGET_PROPERTIES(Button);
18 
19  Button(Scene* owner);
20  bool on_create(Params params) override;
21 };
22 
23 } // namespace ui
24 } // namespace smlt
smlt::ui::Button
Definition: button.h:11
smlt::Params
Definition: params.h:44
smlt
Definition: animation.cpp:25
smlt::ui::Widget
Definition: widget.h:130
smlt::Scene
Definition: scene.h:94