19 lines
267 B
C
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);
|
||
|
};
|
||
|
}
|