|
Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
按钮. 更多...
#include <Button.h>
Public 成员函数 | |
| Button (const std::string &label, const Vector2 &size=Vector2(0.f)) | |
| void | update () override |
Public 成员函数 继承自 ui::Widget | |
| Widget (const std::string &label) | |
| Widget (const std::string &label, const std::string &id) | |
| Widget (const Widget &) | |
| void | set_label (const std::string &label) |
| 设置组件标签. 更多... | |
| const std::string & | get_label () const noexcept |
| 获取组件标签. | |
| uint64_t | get_id () const noexcept |
| virtual void | update () |
Public 属性 | |
| std::function< void(Button &)> | click |
| std::function< void(Button &)> | hover |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 ui::Widget | |
| static uint64_t | request_id () |
Protected 成员函数 继承自 ui::Widget | |
| void | update_handle () |
| 更新句柄. 更多... | |
Protected 属性 继承自 ui::Widget | |
| std::string | handle_ |
| std::string | label_ |
| uint64_t | id_ |
按钮.
|
overridevirtual |
重载 ui::Widget .