2020-03-03 06:24:41 +00:00
|
|
|
#include <gui/Size.h>
|
2002-08-17 06:47:03 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
Size makeSize (int width, int height)
|
2002-08-17 06:47:03 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Size s = {width, height};
|
|
|
|
return s;
|
2002-08-17 06:47:03 +00:00
|
|
|
}
|
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
Size addSize (Size a, Size b)
|
2002-08-17 06:47:03 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Size c = {a.width + b.width, a.height + b.height};
|
|
|
|
return c;
|
2002-08-17 06:47:03 +00:00
|
|
|
}
|
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
Size subtractSize (Size a, Size b)
|
2002-08-17 06:47:03 +00:00
|
|
|
{
|
2010-11-17 06:50:07 +00:00
|
|
|
Size c = {a.width - b.width, a.height - b.height};
|
|
|
|
return c;
|
2002-08-17 06:47:03 +00:00
|
|
|
}
|