Skip to content
You are viewing documentation for v6.0.1. Switch to latest (main).

ftxui::WindowOptions ​

cpp
#include <ftxui/component/component_options.hpp>

Summary ​

SymbolDescription
innerThe component wrapped by this window.
titleThe title displayed by this window.
leftThe left side position of the window.
topThe top side position of the window.
widthThe width of the window.
heightThe height of the window.
resize_leftCan the left side be resized?
resize_rightCan the right side be resized?
resize_topCan the top side be resized?
resize_downCan the down side be resized?
renderAn optional function to customize how the window looks like:

Public Attributes ​

inner ​

cpp
Component inner;

The component wrapped by this window.

title ​

cpp
ConstStringRef title = "";

The title displayed by this window.

left ​

cpp
Ref< int > left = 0;

The left side position of the window.

top ​

cpp
Ref< int > top = 0;

The top side position of the window.

width ​

cpp
Ref< int > width = 20;

The width of the window.

height ​

cpp
Ref< int > height = 10;

The height of the window.

resize_left ​

cpp
Ref< bool > resize_left = true;

Can the left side be resized?

resize_right ​

cpp
Ref< bool > resize_right = true;

Can the right side be resized?

resize_top ​

cpp
Ref< bool > resize_top = true;

Can the top side be resized?

resize_down ​

cpp
Ref< bool > resize_down = true;

Can the down side be resized?

render ​

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

An optional function to customize how the window looks like: