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.
5
6namespace ftxui {
7
8/// @brief Set the flexbox direction.
10 this->direction = d;
11 return *this;
12}
13
14/// @brief Set the flexbox wrap.
16 this->wrap = w;
17 return *this;
18}
19
20/// @brief Set the flexbox justify content.
25
26/// @brief Set the flexbox align items.
31
32/// @brief Set the flexbox align content.
37
38/// @brief Set the flexbox flex direction.
40 this->gap_x = x;
41 this->gap_y = y;
42 return *this;
43}
44
45} // 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.
FlexboxConfig is a configuration structure that defines the layout properties for a flexbox container...
The FTXUI ftxui:: namespace.
Definition animation.hpp:10