dl
dl::UI::Text类 参考

ui文本 更多...

#include <dl_ui_text.h>

Public 成员函数

TextClone ()
 复制一个,注意有些组件属性需要复制
 
void Render ()
 
bool IsPickup ()
 
void SetOrder (float order)
 设置绘制顺序
 
CoorGetCoor ()
 
void SetLang (std::string_view tag, std::string_view name)
 设置语言
 
void SetString (std::string_view str)
 
gcText GetText ()
 返回文本对象,注意在大小变化后,不会更新ui的元素数据
 
void SetElementData (const Align::Direction2 &hv, const Position &pos={})
 
ComponentsGetCpt ()
 

静态 Public 成员函数

static TextCreate (gcText txt)
 

详细描述

ui文本

在文件 dl_ui_text.h25 行定义.

成员函数说明

◆ Clone()

Text * dl::UI::Text::Clone ( )

复制一个,注意有些组件属性需要复制

◆ Create()

static Text * dl::UI::Text::Create ( gcText txt)
inlinestatic

在文件 dl_ui_text.h28 行定义.

◆ GetCoor()

Coor * dl::UI::Text::GetCoor ( )
inline

在文件 dl_ui_text.h58 行定义.

◆ GetCpt()

Components * dl::UI::Text::GetCpt ( )
inline

在文件 dl_ui_text.h88 行定义.

◆ GetText()

gcText dl::UI::Text::GetText ( )
inline

返回文本对象,注意在大小变化后,不会更新ui的元素数据

注解
优先使用SetString设置内容,或手动调用RefreshElementData

在文件 dl_ui_text.h83 行定义.

◆ IsPickup()

bool dl::UI::Text::IsPickup ( )
inline

在文件 dl_ui_text.h47 行定义.

◆ Render()

void dl::UI::Text::Render ( )
inline

在文件 dl_ui_text.h42 行定义.

◆ SetElementData()

void dl::UI::Text::SetElementData ( const Align::Direction2 & hv,
const Position & pos = {} )

◆ SetLang()

void dl::UI::Text::SetLang ( std::string_view tag,
std::string_view name )
inline

设置语言

注解
设置后在修改语言时,可以自动更新

在文件 dl_ui_text.h64 行定义.

◆ SetOrder()

void dl::UI::Text::SetOrder ( float order)
inline

设置绘制顺序

在文件 dl_ui_text.h53 行定义.

◆ SetString()

void dl::UI::Text::SetString ( std::string_view str)
inline

在文件 dl_ui_text.h73 行定义.


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