quakeforge/ruamoko/include/gui/Rect.h

36 lines
695 B
C
Raw Normal View History

2004-02-04 02:35:57 +00:00
#ifndef __ruamoko_gui_Rect_h
#define __ruamoko_gui_Rect_h
#include <gui/Point.h>
#include <gui/Size.h>
/** \addtogroup gui */
2020-02-11 06:20:49 +00:00
///@{
struct Rect {
Point origin;
Size size;
};
typedef struct Rect Rect;
@extern Rect makeRect (int x, int y, int w, int h);
@extern Rect makeRectFromOriginSize (Point origin, Size size);
#if 0
- (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;
#endif
2020-02-11 06:20:49 +00:00
///@}
2004-02-04 02:35:57 +00:00
#endif //__ruamoko_gui_Rect_h