dl
dl::UI 命名空间参考

UI系统 更多...

class  Background
 绘图背景 更多...
 
class  Button
 按钮(Button、Switch、Radio) 更多...
 
class  ButtonNormal
 现代风格 按钮 更多...
 
class  ButtonScale
 缩放按钮(注意精灵没有Coor) 更多...
 
class  ButtonSprite
 精灵按钮(注意精灵没有Coor) 更多...
 
class  ButtonSprite9
 精灵按钮 更多...
 
class  ButtonSpriteColor
 精灵变色按钮 更多...
 
class  ButtonTextColor
 文本变色按钮 更多...
 
class  ColorSet
 颜色组(一般用于文本变色) 更多...
 
class  EditBox
 ui输入框 更多...
 
class  FileExplorer
 ui文件浏览器 更多...
 
class  ListBox
 ui列表框 更多...
 
class  Manager
 UI系统管理器 更多...
 
class  Menu
 ui菜单 更多...
 
class  MenuData
 菜单数据 更多...
 
class  MenuNode
 菜单单个节点 更多...
 
struct  MenuNodeUI
 菜单单个节点UI 更多...
 
class  MenuTop
 菜单顶部 更多...
 
class  MsgBox
 消息框 更多...
 
class  Panel
 UI面板 更多...
 
class  ProgressBar
 ui进度条 更多...
 
class  ResExplorer
 ui资源浏览器 更多...
 
class  Scene
 场景 更多...
 
class  SceneManager
 场景 更多...
 
class  Sprite
 ui精灵 更多...
 
class  Text
 ui文本 更多...
 
class  Tree
 ui树 更多...
 
class  Window
 ui窗口 更多...
 

类型定义

using ButtonMode = Button::Mode
 
using ButtonState = Button::State
 

枚举

enum class  SizeType {
  SMALL , NORMAL , LARGE , LONG ,
  MAX_NUM
}
 默认按钮大小 更多...
 
enum class  ButtonStyle {
  SMALL , NORMAL , LARGE , LONG ,
  CLOSE , SWITCH , BOX
}
 默认按钮样式 更多...
 
enum class  WindowShowMode { SHOW , HIDE , TOGGLE }
 窗口显示操作 更多...
 
enum class  MenuNodeType { NORMAL , SWITCH , DIR , GROUP }
 
enum class  ElementType {
  UNKNOWN = -1 , BACKGROUND , TEXT , BUTTON ,
  MSG_BOX , LOCATOR , LIST_BOX
}
 

函数

ElementType String2ElementType (std::string_view str)
 

详细描述

UI系统

类型定义说明

◆ ButtonMode

在文件 dl_ui_button_base.h384 行定义.

◆ ButtonState

在文件 dl_ui_button_base.h385 行定义.

枚举类型说明

◆ ButtonStyle

enum class dl::UI::ButtonStyle
strong

默认按钮样式

枚举值
SMALL 
NORMAL 
LARGE 
LONG 
CLOSE 
SWITCH 
BOX 

在文件 dl_ui_manager.h57 行定义.

◆ ElementType

enum class dl::UI::ElementType
strong
枚举值
UNKNOWN 
BACKGROUND 
TEXT 
BUTTON 
MSG_BOX 
LOCATOR 
LIST_BOX 

在文件 dl_ui_panel.h31 行定义.

◆ MenuNodeType

enum class dl::UI::MenuNodeType
strong
枚举值
NORMAL 

点击触发

SWITCH 

开关

DIR 

目录

GROUP 

在文件 dl_ui_menu.h21 行定义.

◆ SizeType

enum class dl::UI::SizeType
strong

默认按钮大小

枚举值
SMALL 
NORMAL 
LARGE 
LONG 
MAX_NUM 

在文件 dl_ui_manager.h48 行定义.

◆ WindowShowMode

enum class dl::UI::WindowShowMode
strong

窗口显示操作

枚举值
SHOW 
HIDE 
TOGGLE 

在文件 dl_ui_manager.h68 行定义.

函数说明

◆ String2ElementType()

ElementType dl::UI::String2ElementType ( std::string_view str)
inline

在文件 dl_ui_panel.h42 行定义.