FTXUI
6.1.9
C++ functional terminal UI.
Toggle main menu visibility
Loading...
Searching...
No Matches
box.hpp
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.
4
#ifndef FTXUI_SCREEN_BOX_HPP
5
#define FTXUI_SCREEN_BOX_HPP
6
7
namespace
ftxui
{
8
9
struct
Box
{
10
int
x_min
= 0;
11
int
x_max
= 0;
12
int
y_min
= 0;
13
int
y_max
= 0;
14
15
static
auto
Intersection
(
Box
a,
Box
b) ->
Box
;
16
static
auto
Union
(
Box
a,
Box
b) ->
Box
;
17
void
Shift
(
int
x,
int
y);
18
bool
Contain
(
int
x,
int
y)
const
;
19
bool
IsEmpty
()
const
;
20
bool
operator==
(
const
Box
& other)
const
;
21
bool
operator!=
(
const
Box
& other)
const
;
22
};
23
24
}
// namespace ftxui
25
26
#endif
// FTXUI_SCREEN_BOX_HPP
ftxui
Definition
animation.hpp:10
ftxui::Box
Definition
box.hpp:9
ftxui::Box::operator!=
bool operator!=(const Box &other) const
Definition
box.cpp:68
ftxui::Box::Contain
bool Contain(int x, int y) const
Definition
box.cpp:46
ftxui::Box::Shift
void Shift(int x, int y)
Definition
box.cpp:37
ftxui::Box::x_max
int x_max
Definition
box.hpp:11
ftxui::Box::y_min
int y_min
Definition
box.hpp:12
ftxui::Box::Intersection
static auto Intersection(Box a, Box b) -> Box
Definition
box.cpp:12
ftxui::Box::IsEmpty
bool IsEmpty() const
Definition
box.cpp:55
ftxui::Box::y_max
int y_max
Definition
box.hpp:13
ftxui::Box::operator==
bool operator==(const Box &other) const
Definition
box.cpp:61
ftxui::Box::Union
static auto Union(Box a, Box b) -> Box
Definition
box.cpp:24
ftxui::Box::x_min
int x_min
Definition
box.hpp:10