Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
|
Public 成员函数 | |
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 成员函数 | |
static uint64_t | request_id () |
Protected 成员函数 | |
void | update_handle () |
更新句柄. 更多... | |
Protected 属性 | |
std::string | handle_ |
std::string | label_ |
uint64_t | id_ |
void ui::Widget::set_label | ( | const std::string & | label | ) |
设置组件标签.
label | 组件标签. 不能包含字符串 "##". |
|
protected |
更新句柄.
每当 label 或 id 发生改变时, 句柄应该被更新.