FTXUI 6.1.9 C++ functional terminal UI.

Loading...
Searching...
No Matches
flexbox_config.cpp
Go to the documentation of this file.
1// Copyright 2020 Arthur Sonzogni. All rights reserved.
2// Use of this source code is governed by the MIT license that can be found in
3// the LICENSE file.
4#include "ftxui/dom/flexbox_config.hpp"
5
6 namespace ftxui {
7
8/// @brief Set the flexbox direction.
9 FlexboxConfig& FlexboxConfig::Set(FlexboxConfig::Direction d) {
10 this->direction = d;
11 return *this;
12}
13
14/// @brief Set the flexbox wrap.
15 FlexboxConfig& FlexboxConfig::Set(FlexboxConfig::Wrap w) {
16 this->wrap = w;
17 return *this;
18}
19
20/// @brief Set the flexbox justify content.
21 FlexboxConfig& FlexboxConfig::Set(FlexboxConfig::JustifyContent j) {
22 this->justify_content = j;
23 return *this;
24}
25
26/// @brief Set the flexbox align items.
27 FlexboxConfig& FlexboxConfig::Set(FlexboxConfig::AlignItems a) {
28 this->align_items = a;
29 return *this;
30}
31
32/// @brief Set the flexbox align content.
33 FlexboxConfig& FlexboxConfig::Set(FlexboxConfig::AlignContent a) {
34 this->align_content = a;
35 return *this;
36}
37
38/// @brief Set the flexbox flex direction.
39 FlexboxConfig& FlexboxConfig::SetGap(int x, int y) {
40 this->gap_x = x;
41 this->gap_y = y;
42 return *this;
43}
44
45} // namespace ftxui
flexbox_config.hpp
ftxui::FlexboxConfig::align_content
AlignContent align_content
Definition flexbox_config.hpp:105
ftxui::FlexboxConfig::gap_x
int gap_x
Definition flexbox_config.hpp:107
ftxui::FlexboxConfig::align_items
AlignItems align_items
Definition flexbox_config.hpp:89
ftxui::FlexboxConfig::AlignContent
AlignContent
Definition flexbox_config.hpp:94
ftxui::FlexboxConfig::Direction
Direction
Definition flexbox_config.hpp:32
ftxui::FlexboxConfig::direction
Direction direction
Definition flexbox_config.hpp:39
ftxui::FlexboxConfig::wrap
Wrap wrap
Definition flexbox_config.hpp:49
ftxui::FlexboxConfig::Wrap
Wrap
Definition flexbox_config.hpp:43
ftxui::FlexboxConfig::AlignItems
AlignItems
Definition flexbox_config.hpp:83
ftxui::FlexboxConfig::SetGap
FlexboxConfig & SetGap(int gap_x, int gap_y)
Set the flexbox flex direction.
Definition flexbox_config.cpp:39
ftxui::FlexboxConfig::gap_y
int gap_y
Definition flexbox_config.hpp:108
ftxui::FlexboxConfig::justify_content
JustifyContent justify_content
Definition flexbox_config.hpp:78
ftxui::FlexboxConfig::JustifyContent
JustifyContent
Definition flexbox_config.hpp:56
ftxui::FlexboxConfig::Set
FlexboxConfig & Set(FlexboxConfig::Direction)
Set the flexbox direction.
Definition flexbox_config.cpp:9
ftxui::FlexboxConfig
FlexboxConfig is a configuration structure that defines the layout properties for a flexbox container...
Definition flexbox_config.hpp:27
ftxui
The FTXUI ftxui:: namespace.
Definition animation.hpp:10