* move line, polygon, rectangle API to their own files

* add vim header


SVN revision: 35172
This commit is contained in:
doursse 2008-07-19 18:05:54 +00:00 committed by doursse
parent 193c21da9e
commit 83c733fbf7
8 changed files with 54 additions and 18 deletions

View File

@ -76,6 +76,9 @@ evas_convert_yuv.h \
evas_font.h \
evas_gradient.h \
evas_gradient_private.h \
evas_line.h \
evas_polygon.h \
evas_rectangle.h \
evas_scale_main.h \
evas_scale_smooth.h \
evas_scale_smooth_scaler.c \

View File

@ -0,0 +1,11 @@
#ifndef _EVAS_LINE_H
#define _EVAS_LINE_H
EAPI void evas_common_line_init (void);
EAPI void evas_common_line_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x1, int y1, int x2, int y2);
#endif /* _EVAS_LINE_H */

View File

@ -1,3 +1,7 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "evas_common.h"

View File

@ -0,0 +1,13 @@
#ifndef _EVAS_POLYGON_H
#define _EVAS_POLYGON_H
EAPI void evas_common_polygon_init (void);
EAPI RGBA_Polygon_Point *evas_common_polygon_point_add (RGBA_Polygon_Point *points, int x, int y);
EAPI RGBA_Polygon_Point *evas_common_polygon_points_clear (RGBA_Polygon_Point *points);
EAPI void evas_common_polygon_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point *points);
#endif /* _EVAS_POLYGON_H */

View File

@ -1,7 +1,11 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
typedef struct _RGBA_Span RGBA_Span;
typedef struct _RGBA_Edge RGBA_Edge;
typedef struct _RGBA_Vertex RGBA_Vertex;

View File

@ -0,0 +1,11 @@
#ifndef _EVAS_RECTANGLE_H
#define _EVAS_RECTANGLE_H
EAPI void evas_common_rectangle_init (void);
EAPI void evas_common_rectangle_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);
#endif /* _EVAS_RECTANGLE_H */

View File

@ -1,3 +1,7 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "evas_common.h"
static void rectangle_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);

View File

@ -869,23 +869,9 @@ EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, co
EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress);
/****/
EAPI void evas_common_rectangle_init (void);
EAPI void evas_common_rectangle_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);
/****/
/****/
EAPI void evas_common_line_init (void);
EAPI void evas_common_line_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x1, int y1, int x2, int y2);
/****/
EAPI void evas_common_polygon_init (void);
EAPI RGBA_Polygon_Point *evas_common_polygon_point_add (RGBA_Polygon_Point *points, int x, int y);
EAPI RGBA_Polygon_Point *evas_common_polygon_points_clear (RGBA_Polygon_Point *points);
EAPI void evas_common_polygon_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point *points);
#include "../engines/common/evas_line.h"
#include "../engines/common/evas_polygon.h"
#include "../engines/common/evas_rectangle.h"
/****/
EAPI void evas_common_blit_init (void);