FTXUI
0.8.1
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
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.
ftxui::Box::x_min
int x_min
Definition:
box.hpp:7
ftxui::Box::y_max
int y_max
Definition:
box.hpp:10
ftxui::Box
Definition:
box.hpp:6
ftxui
Definition:
captured_mouse.hpp:6
ftxui::Box::Intersection
static Box Intersection(Box a, Box b)
Definition:
box.cpp:9
ftxui::Box::x_max
int x_max
Definition:
box.hpp:8
ftxui::Box::y_min
int y_min
Definition:
box.hpp:9
ftxui::Box::Contain
bool Contain(int x, int y)
Definition:
box.cpp:20