FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
WindowOptions Struct Reference

#include <component_options.hpp>

Public Attributes

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
 用於自訂視窗外觀的選用函式:
 

Detailed Description

Definition at line 257 of file component_options.hpp.

Member Data Documentation

◆ inner

Component inner

此視窗包裝的元件。

Definition at line 258 of file component_options.hpp.

◆ title

ConstStringRef title = ""

此視窗顯示的標題。

Definition at line 259 of file component_options.hpp.

◆ left

Ref<int> left = 0

視窗的左側位置。

Definition at line 261 of file component_options.hpp.

◆ top

Ref<int> top = 0

視窗的頂部位置。

Definition at line 262 of file component_options.hpp.

◆ width

Ref<int> width = 20

視窗的寬度。

Definition at line 263 of file component_options.hpp.

◆ height

Ref<int> height = 10

視窗的高度。

Definition at line 264 of file component_options.hpp.

◆ resize_left

Ref<bool> resize_left = true

左側是否可調整大小?

Definition at line 266 of file component_options.hpp.

◆ resize_right

Ref<bool> resize_right = true

右側是否可調整大小?

Definition at line 267 of file component_options.hpp.

◆ resize_top

Ref<bool> resize_top = true

頂部是否可調整大小?

Definition at line 268 of file component_options.hpp.

◆ resize_down

Ref<bool> resize_down = true

底部是否可調整大小?

Definition at line 269 of file component_options.hpp.

◆ render

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

用於自訂視窗外觀的選用函式:

Definition at line 272 of file component_options.hpp.


The documentation for this struct was generated from the following file: