FTXUI  5.0.0
C++ functional terminal UI.
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 
6 namespace 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
25  this->justify_content = j;
26  return *this;
27 }
28 
29 /// @brief Set the flexbox align items.
30 /// @ingroup dom
32  this->align_items = a;
33  return *this;
34 }
35 
36 /// @brief Set the flexbox align content.
37 /// @ingroup dom
39  this->align_content = a;
40  return *this;
41 }
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
AlignContent align_content
FlexboxConfig & SetGap(int gap_x, int gap_y)
Set the flexbox flex direction.
JustifyContent justify_content
FlexboxConfig & Set(FlexboxConfig::Direction)
Set the flexbox direction.