Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
ui::Widget类 参考
类 ui::Widget 继承关系图:
ui::Button ui::Label ui::Link ui::Menu ui::Node ui::Pin ui::Window

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_
 

成员函数说明

◆ set_label()

void ui::Widget::set_label ( const std::string &  label)

设置组件标签.

参数
label组件标签. 不能包含字符串 "##".

◆ update_handle()

void ui::Widget::update_handle ( )
protected

更新句柄.

每当 label 或 id 发生改变时, 句柄应该被更新.


该类的文档由以下文件生成: