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