00001 #ifndef _MQINSETS4F_H_
00002 #define _MQINSETS4F_H_
00003
00004
00005
00006
00007
00008
00022 struct Insets4f
00023 {
00024 float x_start;
00025 float x_stop;
00026
00027 float y_start;
00028 float y_stop;
00029
00030 };
00031
00032 typedef struct Insets4f Insets4f;
00033
00034 Insets4f Insets4f_new (float x1, float x2, float y1, float y2);
00035 Insets4i Insets4f_convert (Insets4f insets);
00036 Insets4f Insets4f_mergeInsets(Insets4f RECT1, Insets4f RECT2);
00037 void Insets4f_order(Insets4f* insets);
00038 void Insets4f_fprint (FILE* fp, Insets4f *insets);
00039 void Insets4f_fprintln (FILE* fp, Insets4f *insets);
00040 void Insets4f_fprintAsHeader(FILE* fp, Insets4f *insets);
00041
00042 int Insets4f_isPointInside(Insets4f* rect, float x, float y);
00043 int Insets4f_correctSubInsets(Insets4f* subrect, Insets4f* rect);
00044 void Insets4f_round(Insets4f* insets);
00045 Insets4f* Insets4fArray_create(int size, int start_index);
00046
00047 struct Insets4f Insets4i_convert(Insets4i rect);
00048
00049
00050 #endif
00051