FTXUI  5.0.0
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.
5
6namespace ftxui {
7
8/// @brief Set the flexbox direction.
9/// @ingroup dom
11 this->direction = d;
12 return *this;
13}
14
15/// @brief Set the flexbox wrap.
16/// @ingroup dom
18 this->wrap = w;
19 return *this;
20}
21
22/// @brief Set the flexbox justify content.
23/// @ingroup dom
28
29/// @brief Set the flexbox align items.
30/// @ingroup dom
35
36/// @brief Set the flexbox align content.
37/// @ingroup dom
42
43/// @brief Set the flexbox flex direction.
44/// @ingroup dom
46 this->gap_x = x;
47 this->gap_y = y;
48 return *this;
49}
50
51} // namespace ftxui
FlexboxConfig & SetGap(int gap_x, int gap_y)
Set the flexbox flex direction.
JustifyContent justify_content
FlexboxConfig & Set(FlexboxConfig::Direction)
Set the flexbox direction.