00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00024
00025 #ifndef SFML_RECT_H
00026 #define SFML_RECT_H
00027
00029
00031 #include <SFML/Config.h>
00032
00033
00038 typedef struct
00039 {
00040 float Left;
00041 float Top;
00042 float Right;
00043 float Bottom;
00044 } sfFloatRect;
00045
00046 typedef struct
00047 {
00048 int Left;
00049 int Top;
00050 int Right;
00051 int Bottom;
00052 } sfIntRect;
00053
00054
00063 CSFML_API void sfFloatRect_Offset(sfFloatRect* Rect, float OffsetX, float OffsetY);
00064 CSFML_API void sfIntRect_Offset(sfIntRect* Rect, int OffsetX, int OffsetY);
00065
00076 CSFML_API sfBool sfFloatRect_Contains(sfFloatRect* Rect, float X, float Y);
00077 CSFML_API sfBool sfIntRect_Contains(sfIntRect* Rect, int X, int Y);
00078
00089 CSFML_API sfBool sfFloatRect_Intersects(sfFloatRect* Rect1, sfFloatRect* Rect2, sfFloatRect* OverlappingRect);
00090 CSFML_API sfBool sfIntRect_Intersects(sfIntRect* Rect1, sfIntRect* Rect2, sfIntRect* OverlappingRect);
00091
00092
00093 #endif // SFML_RECT_H