Luna/libui/include/ui/Rect.h

19 lines
267 B
C++

#pragma once
#include <ui/Point.h>
namespace ui
{
/**
* @brief A simple rectangle.
*/
struct Rect
{
Point begin;
int width;
int height;
bool contains(Point point);
Point normalize(Point point);
};
}