FTXUI  4.1.0
C++ functional terminal UI.
Loading...
Searching...
No Matches
box.hpp
Go to the documentation of this file.
1#ifndef FTXUI_SCREEN_BOX_HPP
2#define FTXUI_SCREEN_BOX_HPP
3
4namespace ftxui {
5
6struct 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 static auto Union(Box a, Box b) -> Box;
14 bool Contain(int x, int y) const;
15 bool operator==(const Box& other) const;
16 bool operator!=(const Box& other) const;
17};
18
19} // namespace ftxui
20
21#endif // FTXUI_SCREEN_BOX_HPP
22
23// Copyright 2020 Arthur Sonzogni. All rights reserved.
24// Use of this source code is governed by the MIT license that can be found in
25// the LICENSE file.
bool operator!=(const Box &other) const
Definition box.cpp:48
bool Contain(int x, int y) const
Definition box.cpp:32
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:41
static auto Union(Box a, Box b) -> Box
Definition box.cpp:21
int x_min
Definition box.hpp:7