ftxui::WindowOptions
cpp
#include <ftxui/component/component_options.hpp>Option for the Window component.
Summary
| Symbol | Description |
|---|---|
inner | The component wrapped by this window. |
title | The title displayed by this window. |
left | The left side position of the window. |
top | The top side position of the window. |
width | The width of the window. |
height | The height of the window. |
resize_left | Can the left side be resized? |
resize_right | Can the right side be resized? |
resize_top | Can the top side be resized? |
resize_down | Can the down side be resized? |
render | An 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: