2002-08-17 06:47:03 +00:00
|
|
|
#include "Object.h"
|
2004-02-03 08:31:26 +00:00
|
|
|
#include "gui/Point.h"
|
|
|
|
#include "gui/Size.h"
|
|
|
|
#include "gui/Rect.h"
|
2002-08-17 06:47:03 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
Rect makeRect (int x, int y, int w, int h)
|
2002-08-17 06:47:03 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
//FIXME Rect r = {{x, y}, {w, h}};
|
|
|
|
Rect r;
|
|
|
|
r.origin = makePoint (x, y);
|
|
|
|
r.size = makeSize (w, h);
|
|
|
|
return r;
|
2002-08-17 06:47:03 +00:00
|
|
|
}
|
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
Rect makeRectFromOriginSize (Point origin, Size size)
|
2002-08-17 06:47:03 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Rect r;
|
2002-08-17 06:47:03 +00:00
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
r.origin = origin;
|
|
|
|
r.size = size;
|
2002-08-17 06:47:03 +00:00
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
return r;
|
2002-08-17 06:47:03 +00:00
|
|
|
}
|