* move font and gradient declarations to their own files

* add vim headers
 * remove some trailing spaces


SVN revision: 35170
This commit is contained in:
doursse 2008-07-19 17:13:42 +00:00 committed by doursse
parent 34e6f47ece
commit 261189e2e2
11 changed files with 225 additions and 143 deletions

View File

@ -73,6 +73,9 @@ evas_convert_rgb_24.h \
evas_convert_rgb_32.h \
evas_convert_rgb_8.h \
evas_convert_yuv.h \
evas_font.h \
evas_gradient.h \
evas_gradient_private.h \
evas_scale_main.h \
evas_scale_smooth.h \
evas_scale_smooth_scaler.c \

View File

@ -0,0 +1,69 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifndef _EVAS_FONT_H
#define _EVAS_FONT_H
/* main */
EAPI void evas_common_font_init (void);
EAPI void evas_common_font_shutdown (void);
EAPI int evas_common_font_ascent_get (RGBA_Font *fn);
EAPI int evas_common_font_descent_get (RGBA_Font *fn);
EAPI int evas_common_font_max_ascent_get (RGBA_Font *fn);
EAPI int evas_common_font_max_descent_get (RGBA_Font *fn);
EAPI int evas_common_font_get_line_advance (RGBA_Font *fn);
EAPI int evas_common_font_utf8_get_next (unsigned char *buf, int *iindex);
EAPI int evas_common_font_utf8_get_prev (unsigned char *buf, int *iindex);
EAPI int evas_common_font_utf8_get_last (unsigned char *buf, int buflen);
/* draw */
EAPI void evas_common_font_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font *fn, int x, int y, const char *text);
EAPI int evas_common_font_glyph_search (RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl);
EAPI RGBA_Font_Glyph *evas_common_font_int_cache_glyph_get (RGBA_Font_Int *fi, FT_UInt index);
/* load */
EAPI RGBA_Font_Source *evas_common_font_source_memory_load (const char *name, const void *data, int data_size);
EAPI RGBA_Font_Source *evas_common_font_source_load (const char *name);
EAPI int evas_common_font_source_load_complete (RGBA_Font_Source *fs);
EAPI RGBA_Font_Source *evas_common_font_source_find (const char *name);
EAPI void evas_common_font_source_free (RGBA_Font_Source *fs);
EAPI void evas_common_font_size_use (RGBA_Font *fn);
EAPI RGBA_Font *evas_common_font_memory_load (const char *name, int size, const void *data, int data_size);
EAPI RGBA_Font_Int *evas_common_font_int_load (const char *name, int size);
EAPI RGBA_Font_Int *evas_common_font_int_load_init (RGBA_Font_Int *fn);
EAPI RGBA_Font_Int *evas_common_font_int_load_complete (RGBA_Font_Int *fi);
EAPI RGBA_Font *evas_common_font_memory_load (const char *name, int size, const void *data, int data_size);
EAPI RGBA_Font *evas_common_font_load (const char *name, int size);
EAPI RGBA_Font *evas_common_font_add (RGBA_Font *fn, const char *name, int size);
EAPI RGBA_Font *evas_common_font_memory_add (RGBA_Font *fn, const char *name, int size, const void *data, int data_size);
EAPI void evas_common_font_free (RGBA_Font *fn);
EAPI void evas_common_font_hinting_set (RGBA_Font *fn, Font_Hint_Flags hinting);
EAPI Evas_Bool evas_common_hinting_available (Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_memory_hinting_load (const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_hinting_load (const char *name, int size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_hinting_add (RGBA_Font *fn, const char *name, int size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_memory_hinting_add (RGBA_Font *fn, const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting);
EAPI void evas_common_font_int_modify_cache_by (RGBA_Font_Int *fi, int dir);
EAPI int evas_common_font_cache_get (void);
EAPI void evas_common_font_cache_set (int size);
EAPI void evas_common_font_flush (void);
EAPI void evas_common_font_flush_last (void);
EAPI RGBA_Font_Int *evas_common_font_int_find (const char *name, int size);
/* query */
EAPI void evas_common_font_query_size (RGBA_Font *fn, const char *text, int *w, int *h);
EAPI int evas_common_font_query_inset (RGBA_Font *fn, const char *text);
EAPI void evas_common_font_query_advance (RGBA_Font *fn, const char *text, int *h_adv, int *v_adv);
EAPI int evas_common_font_query_char_coords (RGBA_Font *fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch);
EAPI int evas_common_font_query_text_at_pos (RGBA_Font *fn, const char *text, int x, int y, int *cx, int *cy, int *cw, int *ch);
#endif /* _EVAS_FONT_H */

View File

@ -0,0 +1,31 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifndef _EVAS_GRADIENT_H
#define _EVAS_GRADIENT_H
EAPI void evas_common_gradient_init (void);
EAPI RGBA_Gradient *evas_common_gradient_new (void);
EAPI void evas_common_gradient_free (RGBA_Gradient *gr);
EAPI void evas_common_gradient_clear (RGBA_Gradient *gr);
EAPI void evas_common_gradient_color_stop_add (RGBA_Gradient *gr, int r, int g, int b, int a, int dist);
EAPI void evas_common_gradient_alpha_stop_add (RGBA_Gradient *gr, int a, int dist);
EAPI void evas_common_gradient_color_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
EAPI void evas_common_gradient_alpha_data_set (RGBA_Gradient *gr, DATA8 *adata, int len);
EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, const char *name, char *params);
EAPI void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h);
EAPI void evas_common_gradient_fill_angle_set (RGBA_Gradient *gr, float angle);
EAPI void evas_common_gradient_fill_spread_set (RGBA_Gradient *gr, int spread);
EAPI void evas_common_gradient_map_angle_set (RGBA_Gradient *gr, float angle);
EAPI void evas_common_gradient_map_offset_set (RGBA_Gradient *gr, float offset);
EAPI void evas_common_gradient_map_direction_set (RGBA_Gradient *gr, int direction);
EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int len);
EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr);
EAPI RGBA_Gradient_Type *evas_common_gradient_geometer_get (const char *name);
#endif /* _EVAS_GRADIENT_H */

View File

@ -1,6 +1,12 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
#include "evas_gradient_private.h"
typedef struct _Angular_Data Angular_Data;
struct _Angular_Data
{
@ -11,31 +17,31 @@ struct _Angular_Data
int len;
};
static void
static void
angular_init(void);
static void
static void
angular_shutdown(void);
static void
static void
angular_init_geom(RGBA_Gradient *gr);
static void
static void
angular_setup_geom(RGBA_Gradient *gr);
static void
static void
angular_free_geom(void *gdata);
static int
static int
angular_has_alpha(RGBA_Gradient *gr, int op);
static int
static int
angular_has_mask(RGBA_Gradient *gr, int op);
static int
static int
angular_get_map_len(RGBA_Gradient *gr);
static Gfx_Func_Gradient_Fill
static Gfx_Func_Gradient_Fill
angular_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa);
static RGBA_Gradient_Type angular = {"angular", angular_init, angular_shutdown,
@ -190,24 +196,24 @@ evas_common_gradient_angular_get(void)
return &angular;
}
static void
static void
angular_init(void)
{
}
static void
static void
angular_shutdown(void)
{
}
static void
static void
angular_free_geom(void *gdata)
{
Angular_Data *data = (Angular_Data *)gdata;
if (data) free(data);
}
static void
static void
angular_setup_geom(RGBA_Gradient *gr)
{
Angular_Data *angular_data;
@ -298,7 +304,7 @@ angular_has_alpha(RGBA_Gradient *gr, int op)
if (gr->has_alpha | gr->map.has_alpha)
return 1;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
return 0;
angular_data = (Angular_Data *)gr->type.gdata;
@ -308,7 +314,7 @@ angular_has_alpha(RGBA_Gradient *gr, int op)
if ( ((gr->fill.spread == _EVAS_TEXTURE_RESTRICT) ||
(gr->fill.spread == _EVAS_TEXTURE_RESTRICT_REFLECT) ||
(gr->fill.spread == _EVAS_TEXTURE_RESTRICT_REPEAT))
&& (angular_data->cy < 1.0) )
&& (angular_data->cy < 1.0) )
return 1;
return 0;
}
@ -319,7 +325,7 @@ angular_has_mask(RGBA_Gradient *gr, int op)
Angular_Data *angular_data;
if (!gr || (gr->type.geometer != &angular)) return 0;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
{
angular_data = (Angular_Data *)gr->type.gdata;
@ -358,7 +364,7 @@ angular_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa)
if (!angular_data) return sfunc;
angular_data->off = gr->map.offset;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
masked_op = 1;

View File

@ -1,6 +1,12 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
#include "evas_gradient_private.h"
#define GRAD_LINEAR_DIAG 1
#define GRAD_LINEAR_CODIAG 2
@ -17,19 +23,19 @@ struct _Linear_Data
unsigned char at_angle : 1;
};
static void
static void
linear_init(void);
static void
static void
linear_shutdown(void);
static void
static void
linear_init_geom(RGBA_Gradient *gr);
static void
linear_setup_geom(RGBA_Gradient *gr);
static void
static void
linear_free_geom(void *gdata);
static int
@ -132,17 +138,17 @@ evas_common_gradient_linear_get(void)
return &linear;
}
static void
static void
linear_init(void)
{
}
static void
static void
linear_shutdown(void)
{
}
static void
static void
linear_free_geom(void *gdata)
{
Linear_Data *data = (Linear_Data *)gdata;
@ -220,7 +226,7 @@ linear_setup_geom(RGBA_Gradient *gr)
linear_data->yy0 = (linear_data->ca * (yoff << 16)) - (linear_data->sa * (xoff << 16));
linear_data->off = gr->map.offset;
if ((linear_data->ca != 1.0) || (linear_data->sa != 0.0))
linear_data->at_angle = 1;
}
@ -231,7 +237,7 @@ linear_has_alpha(RGBA_Gradient *gr, int op)
if (!gr || (gr->type.geometer != &linear)) return 0;
if (gr->has_alpha | gr->map.has_alpha)
return 1;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
return 0;
if ( (gr->fill.spread == _EVAS_TEXTURE_RESTRICT) ||
@ -245,7 +251,7 @@ static int
linear_has_mask(RGBA_Gradient *gr, int op)
{
if (!gr || (gr->type.geometer != &linear)) return 0;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
{
if ( (gr->fill.spread == _EVAS_TEXTURE_RESTRICT) ||
@ -279,7 +285,7 @@ linear_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa)
linear_data = (Linear_Data *)gr->type.gdata;
if (!linear_data) return sfunc;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
masked_op = 1;
@ -421,7 +427,7 @@ linear_reflect(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask, int dst_len,
y = src_len - y - 1;
}
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
*dst++ = c;
return;
}
@ -651,7 +657,7 @@ linear_restrict(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask, int dst_len,
return;
}
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
*dst++ = c;
return;
}
@ -791,7 +797,7 @@ linear_restrict_masked(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask, int d
return;
}
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
{
*dst++ = c; *mask++ = 255;
}
@ -937,7 +943,7 @@ linear_restrict_reflect(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask, int
y = src_len - y - 1;
}
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
*dst++ = c;
return;
}
@ -1079,7 +1085,7 @@ linear_restrict_reflect_masked(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mas
y = src_len - y - 1;
}
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
{ *dst++ = c; *mask++ = 255; }
return;
}
@ -1203,7 +1209,7 @@ linear_restrict_repeat(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask, int d
if (y < 0)
y += src_len;
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
*dst++ = c;
return;
}
@ -1335,7 +1341,7 @@ linear_restrict_repeat_masked(DATA32 *src, int src_len, DATA32 *dst, DATA8 *mask
if (y < 0)
y += src_len;
c = src[y];
while (dst < dst_end)
while (dst < dst_end)
{ *dst++ = c; *mask++ = 255; }
return;
}

View File

@ -8,6 +8,7 @@
#include "evas_convert_main.h"
#include "evas_convert_color.h"
#include "evas_scale_span.h"
#include "evas_gradient_private.h"
static void _get_word(char *in, char *key);

View File

@ -0,0 +1,17 @@
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#ifndef _EVAS_GRADIENT_PRIVATE_H
#define _EVAS_GRADIENT_PRIVATE_H
RGBA_Gradient_Type *evas_common_gradient_linear_get (void);
RGBA_Gradient_Type *evas_common_gradient_radial_get (void);
RGBA_Gradient_Type *evas_common_gradient_angular_get (void);
RGBA_Gradient_Type *evas_common_gradient_rectangular_get (void);
RGBA_Gradient_Type *evas_common_gradient_sinusoidal_get (void);
char *evas_common_gradient_get_key_fval (char *in, char *key, float *val);
#endif /* _EVAS_GRADIENT_PRIVATE_H */

View File

@ -1,6 +1,12 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
#include "evas_gradient_private.h"
typedef struct _Radial_Data Radial_Data;
struct _Radial_Data
@ -12,31 +18,31 @@ struct _Radial_Data
int len;
};
static void
static void
radial_init(void);
static void
static void
radial_shutdown(void);
static void
static void
radial_init_geom(RGBA_Gradient *gr);
static void
static void
radial_setup_geom(RGBA_Gradient *gr);
static void
static void
radial_free_geom(void *gdata);
static int
static int
radial_has_alpha(RGBA_Gradient *gr, int op);
static int
static int
radial_has_mask(RGBA_Gradient *gr, int op);
static int
static int
radial_get_map_len(RGBA_Gradient *gr);
static Gfx_Func_Gradient_Fill
static Gfx_Func_Gradient_Fill
radial_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa);
static RGBA_Gradient_Type radial = {"radial", radial_init, radial_shutdown,
@ -133,24 +139,24 @@ evas_common_gradient_radial_get(void)
return &radial;
}
static void
static void
radial_init(void)
{
}
static void
static void
radial_shutdown(void)
{
}
static void
static void
radial_free_geom(void *gdata)
{
Radial_Data *data = (Radial_Data *)gdata;
if (data) free(data);
}
static void
static void
radial_setup_geom(RGBA_Gradient *gr)
{
Radial_Data *radial_data;
@ -228,7 +234,7 @@ radial_has_alpha(RGBA_Gradient *gr, int op)
if (!gr || (gr->type.geometer != &radial)) return 0;
if (gr->has_alpha | gr->map.has_alpha)
return 1;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
return 0;
radial_data = (Radial_Data *)gr->type.gdata;
@ -248,7 +254,7 @@ radial_has_mask(RGBA_Gradient *gr, int op)
Radial_Data *radial_data;
if (!gr || (gr->type.geometer != &radial)) return 0;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
{
radial_data = (Radial_Data *)gr->type.gdata;
@ -286,7 +292,7 @@ radial_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa)
if (!radial_data) return sfunc;
radial_data->off = gr->map.offset;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
masked_op = 1;

View File

@ -1,6 +1,12 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
#include "evas_gradient_private.h"
typedef struct _Rectangular_Data Rectangular_Data;
struct _Rectangular_Data
@ -12,31 +18,31 @@ struct _Rectangular_Data
int len;
};
static void
static void
rectangular_init(void);
static void
static void
rectangular_shutdown(void);
static void
static void
rectangular_init_geom(RGBA_Gradient *gr);
static void
static void
rectangular_setup_geom(RGBA_Gradient *gr);
static void
static void
rectangular_free_geom(void *gdata);
static int
static int
rectangular_has_alpha(RGBA_Gradient *gr, int op);
static int
static int
rectangular_has_mask(RGBA_Gradient *gr, int op);
static int
static int
rectangular_get_map_len(RGBA_Gradient *gr);
static Gfx_Func_Gradient_Fill
static Gfx_Func_Gradient_Fill
rectangular_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa);
static RGBA_Gradient_Type rectangular = {"rectangular", rectangular_init, rectangular_shutdown,
@ -133,24 +139,24 @@ evas_common_gradient_rectangular_get(void)
return &rectangular;
}
static void
static void
rectangular_init(void)
{
}
static void
static void
rectangular_shutdown(void)
{
}
static void
static void
rectangular_free_geom(void *gdata)
{
Rectangular_Data *data = (Rectangular_Data *)gdata;
if (data) free(data);
}
static void
static void
rectangular_setup_geom(RGBA_Gradient *gr)
{
Rectangular_Data *rectangular_data;
@ -228,7 +234,7 @@ rectangular_has_alpha(RGBA_Gradient *gr, int op)
if (!gr || (gr->type.geometer != &rectangular)) return 0;
if (gr->has_alpha | gr->map.has_alpha)
return 1;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
return 0;
rectangular_data = (Rectangular_Data *)gr->type.gdata;
@ -248,7 +254,7 @@ rectangular_has_mask(RGBA_Gradient *gr, int op)
Rectangular_Data *rectangular_data;
if (!gr || (gr->type.geometer != &rectangular)) return 0;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
{
rectangular_data = (Rectangular_Data *)gr->type.gdata;
@ -287,7 +293,7 @@ rectangular_get_fill_func(RGBA_Gradient *gr, int op, unsigned char aa)
if (!rectangular_data) return sfunc;
rectangular_data->off = gr->map.offset;
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
if ( (op == _EVAS_RENDER_COPY) || (op == _EVAS_RENDER_COPY_REL) ||
(op == _EVAS_RENDER_MASK) || (op == _EVAS_RENDER_MUL) )
masked_op = 1;
switch (gr->fill.spread)

View File

@ -1,6 +1,12 @@
#include "evas_common.h"
/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include <math.h>
#include "evas_common.h"
#include "evas_gradient_private.h"
typedef struct _Sinusoidal_Data Sinusoidal_Data;
struct _Sinusoidal_Data
{

View File

@ -874,32 +874,6 @@ 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_gradient_init (void);
EAPI RGBA_Gradient *evas_common_gradient_new (void);
EAPI void evas_common_gradient_free (RGBA_Gradient *gr);
EAPI void evas_common_gradient_clear (RGBA_Gradient *gr);
EAPI void evas_common_gradient_color_stop_add (RGBA_Gradient *gr, int r, int g, int b, int a, int dist);
EAPI void evas_common_gradient_alpha_stop_add (RGBA_Gradient *gr, int a, int dist);
EAPI void evas_common_gradient_color_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
EAPI void evas_common_gradient_alpha_data_set (RGBA_Gradient *gr, DATA8 *adata, int len);
EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, const char *name, char *params);
EAPI void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h);
EAPI void evas_common_gradient_fill_angle_set (RGBA_Gradient *gr, float angle);
EAPI void evas_common_gradient_fill_spread_set (RGBA_Gradient *gr, int spread);
EAPI void evas_common_gradient_map_angle_set (RGBA_Gradient *gr, float angle);
EAPI void evas_common_gradient_map_offset_set (RGBA_Gradient *gr, float offset);
EAPI void evas_common_gradient_map_direction_set(RGBA_Gradient *gr, int direction);
EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int len);
EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr);
EAPI RGBA_Gradient_Type *evas_common_gradient_geometer_get (const char *name);
RGBA_Gradient_Type *evas_common_gradient_linear_get (void);
RGBA_Gradient_Type *evas_common_gradient_radial_get (void);
RGBA_Gradient_Type *evas_common_gradient_angular_get (void);
RGBA_Gradient_Type *evas_common_gradient_rectangular_get (void);
RGBA_Gradient_Type *evas_common_gradient_sinusoidal_get (void);
char *evas_common_gradient_get_key_fval (char *in, char *key, float *val);
/****/
EAPI void evas_common_line_init (void);
@ -919,51 +893,8 @@ EAPI void evas_common_blit_init (void);
EAPI void evas_common_blit_rectangle (const RGBA_Image *src, RGBA_Image *dst, int src_x, int src_y, int w, int h, int dst_x, int dst_y);
/****/
/****/
EAPI void evas_common_font_init (void);
EAPI void evas_common_font_shutdown (void);
EAPI RGBA_Font_Source *evas_common_font_source_memory_load(const char *name, const void *data, int data_size);
EAPI RGBA_Font_Source *evas_common_font_source_load (const char *name);
EAPI int evas_common_font_source_load_complete(RGBA_Font_Source *fs);
EAPI RGBA_Font_Source *evas_common_font_source_find (const char *name);
EAPI void evas_common_font_source_free (RGBA_Font_Source *fs);
EAPI void evas_common_font_size_use (RGBA_Font *fn);
EAPI RGBA_Font *evas_common_font_memory_load (const char *name, int size, const void *data, int data_size);
EAPI RGBA_Font *evas_common_font_load (const char *name, int size);
EAPI RGBA_Font *evas_common_font_add (RGBA_Font *fn, const char *name, int size);
EAPI RGBA_Font *evas_common_font_memory_add (RGBA_Font *fn, const char *name, int size, const void *data, int data_size);
EAPI RGBA_Font_Int *evas_common_font_int_load_init (RGBA_Font_Int *fn);
EAPI RGBA_Font_Int *evas_common_font_int_load_complete (RGBA_Font_Int *fi);
EAPI void evas_common_font_free (RGBA_Font *fn);
EAPI void evas_common_font_hinting_set (RGBA_Font *fn, Font_Hint_Flags hinting);
EAPI Evas_Bool evas_common_hinting_available (Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_memory_hinting_load(const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_hinting_load (const char *name, int size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_hinting_add (RGBA_Font *fn, const char *name, int size, Font_Hint_Flags hinting);
EAPI RGBA_Font *evas_common_font_memory_hinting_add(RGBA_Font *fn, const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting);
EAPI void evas_common_font_int_modify_cache_by(RGBA_Font_Int *fi, int dir);
EAPI int evas_common_font_cache_get (void);
EAPI void evas_common_font_cache_set (int size);
EAPI void evas_common_font_flush (void);
EAPI void evas_common_font_flush_last (void);
EAPI RGBA_Font_Int *evas_common_font_int_find (const char *name, int size);
EAPI int evas_common_font_glyph_search (RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl);
EAPI void evas_common_font_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font *fn, int x, int y, const char *text);
EAPI RGBA_Font_Glyph *evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index);
EAPI int evas_common_font_ascent_get (RGBA_Font *fn);
EAPI int evas_common_font_descent_get (RGBA_Font *fn);
EAPI int evas_common_font_max_ascent_get (RGBA_Font *fn);
EAPI int evas_common_font_max_descent_get (RGBA_Font *fn);
EAPI int evas_common_font_get_line_advance (RGBA_Font *fn);
EAPI void evas_common_font_query_size (RGBA_Font *fn, const char *text, int *w, int *h);
EAPI int evas_common_font_query_inset (RGBA_Font *fn, const char *text);
EAPI void evas_common_font_query_advance (RGBA_Font *fn, const char *text, int *h_adv, int *v_adv);
EAPI int evas_common_font_query_char_coords (RGBA_Font *fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch);
EAPI int evas_common_font_query_text_at_pos (RGBA_Font *fn, const char *text, int x, int y, int *cx, int *cy, int *cw, int *ch);
EAPI int evas_common_font_utf8_get_next (unsigned char *buf, int *iindex);
EAPI int evas_common_font_utf8_get_prev (unsigned char *buf, int *iindex);
EAPI int evas_common_font_utf8_get_last (unsigned char *buf, int buflen);
#include "../engines/common/evas_gradient.h"
#include "../engines/common/evas_font.h"
/****/
EAPI void evas_common_tilebuf_init (void);