2004-02-04 02:35:57 +00:00
|
|
|
#ifndef __ruamoko_gui_Rect_h
|
|
|
|
#define __ruamoko_gui_Rect_h
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2020-03-03 06:24:41 +00:00
|
|
|
#include <gui/Point.h>
|
|
|
|
#include <gui/Size.h>
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2011-07-10 08:33:43 +00:00
|
|
|
/** \addtogroup gui */
|
2020-02-11 06:20:49 +00:00
|
|
|
///@{
|
2011-07-10 08:33:43 +00:00
|
|
|
|
2010-11-17 06:50:07 +00:00
|
|
|
struct Rect {
|
2002-08-17 05:27:34 +00:00
|
|
|
Point origin;
|
|
|
|
Size size;
|
2010-11-17 06:50:07 +00:00
|
|
|
};
|
|
|
|
typedef struct Rect Rect;
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2011-03-25 07:46:32 +00:00
|
|
|
@extern Rect makeRect (int x, int y, int w, int h);
|
2010-11-17 06:50:07 +00:00
|
|
|
@extern Rect makeRectFromOriginSize (Point origin, Size size);
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2002-08-17 07:17:53 +00:00
|
|
|
#if 0
|
2002-08-17 05:27:34 +00:00
|
|
|
- (BOOL) intersectsRect: (Rect)aRect;
|
|
|
|
- (BOOL) containsPoint: (Point)aPoint;
|
|
|
|
- (BOOL) containsRect: (Rect)aRect;
|
|
|
|
- (BOOL) isEqualToRect: (Rect)aRect;
|
|
|
|
- (BOOL) isEmpty;
|
|
|
|
|
|
|
|
- (Rect) intersectionWithRect: (Rect)aRect;
|
|
|
|
- (Rect) unionWithRect: (Rect)aRect;
|
|
|
|
|
|
|
|
- (Rect) insetBySize: (Size)aSize;
|
|
|
|
- (Rect) offsetBySize: (Size)aSize;
|
2002-08-17 07:17:53 +00:00
|
|
|
#endif
|
2002-08-17 05:27:34 +00:00
|
|
|
|
2020-02-11 06:20:49 +00:00
|
|
|
///@}
|
2011-07-10 08:33:43 +00:00
|
|
|
|
2004-02-04 02:35:57 +00:00
|
|
|
#endif //__ruamoko_gui_Rect_h
|