2019-01-20 05:06:05 +08:00
|
|
|
#ifndef FTXUI_SCREEN_BOX_HPP
|
|
|
|
#define FTXUI_SCREEN_BOX_HPP
|
|
|
|
|
|
|
|
namespace ftxui {
|
|
|
|
|
|
|
|
struct Box {
|
|
|
|
int x_min;
|
|
|
|
int x_max;
|
|
|
|
int y_min;
|
|
|
|
int y_max;
|
|
|
|
|
|
|
|
static Box Intersection(Box a, Box b);
|
2021-04-19 04:33:41 +08:00
|
|
|
bool Contain(int x, int y);
|
2019-01-20 05:06:05 +08:00
|
|
|
};
|
|
|
|
|
2020-02-12 04:44:55 +08:00
|
|
|
} // namespace ftxui
|
2019-01-20 05:06:05 +08:00
|
|
|
|
|
|
|
#endif /* end of include guard: FTXUI_SCREEN_BOX_HPP */
|
2020-08-16 06:24:18 +08:00
|
|
|
|
|
|
|
// Copyright 2020 Arthur Sonzogni. All rights reserved.
|
|
|
|
// Use of this source code is governed by the MIT license that can be found in
|
|
|
|
// the LICENSE file.
|