FTXUI  0.11.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 Box Intersection(Box a, Box b);
13 bool Contain(int x, int y);
14};
15
16} // namespace ftxui
17
18#endif /* end of include guard: FTXUI_SCREEN_BOX_HPP */
19
20// Copyright 2020 Arthur Sonzogni. All rights reserved.
21// Use of this source code is governed by the MIT license that can be found in
22// the LICENSE file.
int x_max
Definition box.hpp:8
int y_min
Definition box.hpp:9
bool Contain(int x, int y)
Definition box.cpp:20
int y_max
Definition box.hpp:10
int x_min
Definition box.hpp:7
static Box Intersection(Box a, Box b)
Definition box.cpp:9