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 |
![]() | |
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 |
额外继承的成员函数 | |
![]() | |
static uint64_t | request_id () |
![]() | |
void | update_handle () |
更新句柄. 更多... | |
![]() | |
std::string | handle_ |
std::string | label_ |
uint64_t | id_ |
按钮.
|
overridevirtual |
重载 ui::Widget .