FTXUI  3.0.0
C++ functional terminal UI.
box.hpp
Go to the documentation of this file.
1 #ifndef FTXUI_SCREEN_BOX_HPP
2 #define FTXUI_SCREEN_BOX_HPP
3 
4 namespace ftxui {
5 
6 struct Box {
7  int x_min = 0;
8  int x_max = 0;
9  int y_min = 0;
10  int y_max = 0;
11 
12  static auto Intersection(Box a, Box b) -> Box;
13  bool Contain(int x, int y) const;
14  bool operator==(const Box& other) const;
15  bool operator!=(const Box& other) const;
16 };
17 
18 } // namespace ftxui
19 
20 #endif // FTXUI_SCREEN_BOX_HPP
21 
22 // Copyright 2020 Arthur Sonzogni. All rights reserved.
23 // Use of this source code is governed by the MIT license that can be found in
24 // the LICENSE file.
bool operator!=(const Box &other) const
Definition: box.cpp:36
bool Contain(int x, int y) const
Definition: box.cpp:20
int x_max
Definition: box.hpp:8
int y_min
Definition: box.hpp:9
static auto Intersection(Box a, Box b) -> Box
Definition: box.cpp:9
int y_max
Definition: box.hpp:10
bool operator==(const Box &other) const
Definition: box.cpp:29
int x_min
Definition: box.hpp:7