dl
dl::UI::Background类 参考

绘图背景 更多...

#include <dl_ui_background.h>

Public 类型

enum class  Type { NONE , SPRITE , SPRITE9 }
 
using CbCustomRender = std::function<void(Background*)>
 

Public 成员函数

BackgroundClone ()
 
void Set (gcSprite spr)
 
void Set (Sprite9 *spr9)
 
void Clear ()
 
void SetOffset (const Position &offset)
 设置偏移
 
void SetSize (const Position &size)
 设置大小
 
void SetColor (const Color &col)
 设置颜色
 
void SetSizeExtra (const Position &size)
 设置额外大小
 
void SetCustomRender (CbCustomRender cb)
 
Cpt::ElementDataGetElementData ()
 
Position GetOffset ()
 
Position GetSize ()
 返回设置的大小(不包含额外大小)
 
Position GetSizeReal ()
 返回显示的实际大小
 
CoorGetCoor ()
 
float GetOrder ()
 
float GetOrder (int offset)
 
void SetWindowW (bool fixed)
 
void SetWindowH (bool fixed)
 
bool IsWindowW ()
 
bool IsWindowH ()
 
bool IsPickup ()
 
void Render ()
 
void SetOrder (float order)
 
void SetUI (bool ui, bool change_sampler=true)
 
void RenderDebug ()
 
void RefreshSize ()
 ui缩放变更后会调用
 
ComponentsGetCpt ()
 
 ~Background ()
 

静态 Public 成员函数

static BackgroundCreate ()
 

详细描述

绘图背景

在文件 dl_ui_background.h23 行定义.

成员类型定义说明

◆ CbCustomRender

using dl::UI::Background::CbCustomRender = std::function<void(Background*)>

在文件 dl_ui_background.h26 行定义.

成员枚举类型说明

◆ Type

enum class dl::UI::Background::Type
strong
枚举值
NONE 
SPRITE 
SPRITE9 

在文件 dl_ui_background.h28 行定义.

构造及析构函数说明

◆ ~Background()

dl::UI::Background::~Background ( )
inline

在文件 dl_ui_background.h115 行定义.

成员函数说明

◆ Clear()

void dl::UI::Background::Clear ( )

◆ Clone()

Background * dl::UI::Background::Clone ( )

◆ Create()

static Background * dl::UI::Background::Create ( )
inlinestatic

在文件 dl_ui_background.h35 行定义.

◆ GetCoor()

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

在文件 dl_ui_background.h83 行定义.

◆ GetCpt()

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

在文件 dl_ui_background.h113 行定义.

◆ GetElementData()

Cpt::ElementData & dl::UI::Background::GetElementData ( )
inline

在文件 dl_ui_background.h71 行定义.

◆ GetOffset()

Position dl::UI::Background::GetOffset ( )

◆ GetOrder() [1/2]

float dl::UI::Background::GetOrder ( )

◆ GetOrder() [2/2]

float dl::UI::Background::GetOrder ( int offset)
inline

在文件 dl_ui_background.h88 行定义.

◆ GetSize()

Position dl::UI::Background::GetSize ( )

返回设置的大小(不包含额外大小)

◆ GetSizeReal()

Position dl::UI::Background::GetSizeReal ( )

返回显示的实际大小

◆ IsPickup()

bool dl::UI::Background::IsPickup ( )

◆ IsWindowH()

bool dl::UI::Background::IsWindowH ( )
inline

在文件 dl_ui_background.h98 行定义.

◆ IsWindowW()

bool dl::UI::Background::IsWindowW ( )
inline

在文件 dl_ui_background.h97 行定义.

◆ RefreshSize()

void dl::UI::Background::RefreshSize ( )

ui缩放变更后会调用

◆ Render()

void dl::UI::Background::Render ( )

◆ RenderDebug()

void dl::UI::Background::RenderDebug ( )

◆ Set() [1/2]

void dl::UI::Background::Set ( gcSprite spr)

◆ Set() [2/2]

void dl::UI::Background::Set ( Sprite9 * spr9)

◆ SetColor()

void dl::UI::Background::SetColor ( const Color & col)

设置颜色

◆ SetCustomRender()

void dl::UI::Background::SetCustomRender ( CbCustomRender cb)
inline

在文件 dl_ui_background.h65 行定义.

◆ SetOffset()

void dl::UI::Background::SetOffset ( const Position & offset)

设置偏移

◆ SetOrder()

void dl::UI::Background::SetOrder ( float order)

◆ SetSize()

void dl::UI::Background::SetSize ( const Position & size)

设置大小

◆ SetSizeExtra()

void dl::UI::Background::SetSizeExtra ( const Position & size)

设置额外大小

◆ SetUI()

void dl::UI::Background::SetUI ( bool ui,
bool change_sampler = true )

◆ SetWindowH()

void dl::UI::Background::SetWindowH ( bool fixed)
inline

在文件 dl_ui_background.h95 行定义.

◆ SetWindowW()

void dl::UI::Background::SetWindowW ( bool fixed)
inline

在文件 dl_ui_background.h94 行定义.


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