mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 18:59:59 +08:00
Address @tusharpm comments. (#178)
@tusharpm let two comments in: https://github.com/ArthurSonzogni/FTXUI/pull/175 but this already landed in: https://github.com/ArthurSonzogni/FTXUI/pull/173 Address them here.
This commit is contained in:
parent
d197e2f4fb
commit
1ff894f6f5
@ -4,10 +4,10 @@
|
|||||||
namespace ftxui {
|
namespace ftxui {
|
||||||
|
|
||||||
struct Box {
|
struct Box {
|
||||||
int x_min;
|
int x_min = 0;
|
||||||
int x_max;
|
int x_max = 0;
|
||||||
int y_min;
|
int y_min = 0;
|
||||||
int y_max;
|
int y_max = 0;
|
||||||
|
|
||||||
static Box Intersection(Box a, Box b);
|
static Box Intersection(Box a, Box b);
|
||||||
bool Contain(int x, int y);
|
bool Contain(int x, int y);
|
||||||
|
@ -75,7 +75,7 @@ Component Renderer(Component child, std::function<Element()> render) {
|
|||||||
/// if (focused)
|
/// if (focused)
|
||||||
/// return text("My interface") | inverted;
|
/// return text("My interface") | inverted;
|
||||||
/// else
|
/// else
|
||||||
/// return text("My interface") | inverted;
|
/// return text("My interface");
|
||||||
/// });
|
/// });
|
||||||
/// screen.Loop(renderer);
|
/// screen.Loop(renderer);
|
||||||
/// ```
|
/// ```
|
||||||
|
Loading…
Reference in New Issue
Block a user