FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
WindowOptions结构体 参考

#include <component_options.hpp>

Public 属性

Component inner
 此窗口包装的组件。
 
ConstStringRef title = ""
 此窗口显示的标题。
 
Ref< int > left = 0
 窗口的左侧位置。
 
Ref< int > top = 0
 窗口的顶部位置。
 
Ref< int > width = 20
 窗口的宽度。
 
Ref< int > height = 10
 窗口的高度。
 
Ref< bool > resize_left = true
 左侧是否可以调整大小?
 
Ref< bool > resize_right = true
 右侧是否可以调整大小?
 
Ref< bool > resize_top = true
 顶部是否可以调整大小?
 
Ref< bool > resize_down = true
 底部是否可以调整大小?
 
std::function< Element(const WindowRenderState &)> render
 用于自定义窗口外观的可选函数:
 

详细描述

在文件 component_options.hpp255 行定义.

类成员变量说明

◆ inner

Component inner

此窗口包装的组件。

在文件 component_options.hpp256 行定义.

◆ title

ConstStringRef title = ""

此窗口显示的标题。

在文件 component_options.hpp257 行定义.

◆ left

Ref<int> left = 0

窗口的左侧位置。

在文件 component_options.hpp259 行定义.

◆ top

Ref<int> top = 0

窗口的顶部位置。

在文件 component_options.hpp260 行定义.

◆ width

Ref<int> width = 20

窗口的宽度。

在文件 component_options.hpp261 行定义.

◆ height

Ref<int> height = 10

窗口的高度。

在文件 component_options.hpp262 行定义.

◆ resize_left

Ref<bool> resize_left = true

左侧是否可以调整大小?

在文件 component_options.hpp264 行定义.

◆ resize_right

Ref<bool> resize_right = true

右侧是否可以调整大小?

在文件 component_options.hpp265 行定义.

◆ resize_top

Ref<bool> resize_top = true

顶部是否可以调整大小?

在文件 component_options.hpp266 行定义.

◆ resize_down

Ref<bool> resize_down = true

底部是否可以调整大小?

在文件 component_options.hpp267 行定义.

◆ render

std::function<Element(const WindowRenderState&)> render

用于自定义窗口外观的可选函数:

在文件 component_options.hpp270 行定义.


该结构体的文档由以下文件生成: