forked from enlightenment/efl
Functions used by modules must be EAPI
SVN revision: 25526
This commit is contained in:
parent
ec72116e3c
commit
e55f7b27b2
|
@ -366,7 +366,7 @@ evas_gfx_compositor_get(unsigned char op)
|
|||
return comp;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_blend_init(void)
|
||||
{
|
||||
static int gfx_initialised = 0;
|
||||
|
|
|
@ -16,12 +16,12 @@ static void evas_common_copy_pixels_rev_mmx (DATA32 *src, DATA32 *dst, i
|
|||
static void evas_common_copy_pixels_rev_sse/*NB*/ (DATA32 *src, DATA32 *dst, int len);
|
||||
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_blit_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_blit_rectangle(RGBA_Image *src, RGBA_Image *dst, int src_x, int src_y, int w, int h, int dst_x, int dst_y)
|
||||
{
|
||||
int y;
|
||||
|
|
|
@ -144,12 +144,12 @@ const DATA8 _evas_dither_128128[128][128] =
|
|||
};
|
||||
#endif
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_convert_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
Gfx_Func_Convert
|
||||
EAPI Gfx_Func_Convert
|
||||
evas_common_convert_func_get(DATA8 *dest, int w, int h, int depth, DATA32 rmask, DATA32 gmask, DATA32 bmask, Convert_Pal_Mode pal_mode, int rotation)
|
||||
{
|
||||
if ((rmask == 0) && (gmask == 0) && (bmask == 0))
|
||||
|
|
|
@ -112,7 +112,7 @@ evas_common_cpu_feature_test(void (*feature)(void))
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_cpu_init(void)
|
||||
{
|
||||
static int called = 0;
|
||||
|
@ -166,7 +166,7 @@ evas_common_cpu_have_cpuid(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_cpu_can_do(int *mmx, int *sse, int *sse2)
|
||||
{
|
||||
static int do_mmx = 0, do_sse = 0, do_sse2 = 0, done = 0;
|
||||
|
@ -192,7 +192,7 @@ evas_common_cpu_can_do(int *mmx, int *sse, int *sse2)
|
|||
}
|
||||
|
||||
#ifdef BUILD_MMX
|
||||
void
|
||||
EAPI void
|
||||
evas_common_cpu_end_opt(void)
|
||||
{
|
||||
if (cpu_feature_mask &
|
||||
|
@ -202,7 +202,7 @@ evas_common_cpu_end_opt(void)
|
|||
}
|
||||
}
|
||||
#else
|
||||
void
|
||||
EAPI void
|
||||
evas_common_cpu_end_opt(void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -28,12 +28,12 @@ evas_common_shutdown(void)
|
|||
evas_common_image_cache_free();
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
RGBA_Draw_Context *
|
||||
EAPI RGBA_Draw_Context *
|
||||
evas_common_draw_context_new(void)
|
||||
{
|
||||
RGBA_Draw_Context *dc;
|
||||
|
@ -42,13 +42,13 @@ evas_common_draw_context_new(void)
|
|||
return dc;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_free(RGBA_Draw_Context *dc)
|
||||
{
|
||||
free(dc);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_font_ext_set(RGBA_Draw_Context *dc,
|
||||
void *data,
|
||||
void *(*gl_new) (void *data, RGBA_Font_Glyph *fg),
|
||||
|
@ -61,7 +61,7 @@ evas_common_draw_context_font_ext_set(RGBA_Draw_Context *dc,
|
|||
dc->font_ext.func.gl_draw = gl_draw;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
|
||||
{
|
||||
if (dc->clip.use)
|
||||
|
@ -73,7 +73,7 @@ evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, i
|
|||
evas_common_draw_context_set_clip(dc, x, y, w, h);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
|
||||
{
|
||||
dc->clip.use = 1;
|
||||
|
@ -83,13 +83,13 @@ evas_common_draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, in
|
|||
dc->clip.h = h;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_unset_clip(RGBA_Draw_Context *dc)
|
||||
{
|
||||
dc->clip.use = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a)
|
||||
{
|
||||
R_VAL(&(dc->col.col)) = (DATA8)r;
|
||||
|
@ -98,7 +98,7 @@ evas_common_draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, i
|
|||
A_VAL(&(dc->col.col)) = (DATA8)a;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a)
|
||||
{
|
||||
dc->mul.use = 1;
|
||||
|
@ -108,13 +108,13 @@ evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int
|
|||
A_VAL(&(dc->mul.col)) = (DATA8)a;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
|
||||
{
|
||||
dc->mul.use = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
|
||||
{
|
||||
Cutout_Rect *r;
|
||||
|
@ -127,14 +127,14 @@ evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w,
|
|||
dc->cutout.rects = evas_object_list_append(dc->cutout.rects, r);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_clear_cutouts(RGBA_Draw_Context *dc)
|
||||
{
|
||||
evas_common_draw_context_apply_free_cutouts(dc->cutout.rects);
|
||||
dc->cutout.rects = NULL;
|
||||
}
|
||||
|
||||
Cutout_Rect *
|
||||
EAPI Cutout_Rect *
|
||||
evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
|
||||
{
|
||||
Cutout_Rect *r, *rects;
|
||||
|
@ -156,7 +156,7 @@ evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
|
|||
return rects;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
|
||||
{
|
||||
while (rects)
|
||||
|
@ -169,7 +169,7 @@ evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
|
|||
}
|
||||
}
|
||||
|
||||
Cutout_Rect *
|
||||
EAPI Cutout_Rect *
|
||||
evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
|
||||
{
|
||||
/* multiple rect in, multiple out */
|
||||
|
@ -196,7 +196,7 @@ evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
|
|||
return out;
|
||||
}
|
||||
|
||||
Cutout_Rect *
|
||||
EAPI Cutout_Rect *
|
||||
evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
|
||||
{
|
||||
/* 1 input rect, multiple out */
|
||||
|
@ -501,7 +501,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
|
|||
#undef R_NEW
|
||||
}
|
||||
|
||||
Cutout_Rect *
|
||||
EAPI Cutout_Rect *
|
||||
evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge)
|
||||
{
|
||||
/* 1 input rect, multiple out */
|
||||
|
@ -529,19 +529,19 @@ evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge)
|
|||
return out;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_anti_alias(RGBA_Draw_Context *dc , unsigned char aa)
|
||||
{
|
||||
dc->anti_alias = !!aa;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_color_interpolation(RGBA_Draw_Context *dc, int color_space)
|
||||
{
|
||||
dc->interpolation.color_space = color_space;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_draw_context_set_render_op(RGBA_Draw_Context *dc , int op)
|
||||
{
|
||||
dc->render_op = op;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "evas_common.h"
|
||||
|
||||
RGBA_Font_Glyph *
|
||||
EAPI RGBA_Font_Glyph *
|
||||
evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index)
|
||||
{
|
||||
RGBA_Font_Glyph *fg;
|
||||
|
@ -53,7 +53,7 @@ evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index)
|
|||
return fg;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_glyph_search(RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl)
|
||||
{
|
||||
Evas_List *l;
|
||||
|
@ -128,7 +128,7 @@ evas_common_font_glyph_search(RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font *fn, int x, int y, const char *text)
|
||||
{
|
||||
int use_kerning;
|
||||
|
|
|
@ -11,7 +11,7 @@ static Evas_Object_List * fonts = NULL;
|
|||
static Evas_Bool font_modify_cache_cb(Evas_Hash *hash, const char *key, void *data, void *fdata);
|
||||
static Evas_Bool font_flush_free_glyph_cb(Evas_Hash *hash, const char *key, void *data, void *fdata);
|
||||
|
||||
RGBA_Font_Source *
|
||||
EAPI RGBA_Font_Source *
|
||||
evas_common_font_source_memory_load(const char *name, const void *data, int data_size)
|
||||
{
|
||||
int error;
|
||||
|
@ -38,7 +38,7 @@ evas_common_font_source_memory_load(const char *name, const void *data, int data
|
|||
return fs;
|
||||
}
|
||||
|
||||
RGBA_Font_Source *
|
||||
EAPI RGBA_Font_Source *
|
||||
evas_common_font_source_load(const char *name)
|
||||
{
|
||||
RGBA_Font_Source *fs;
|
||||
|
@ -60,7 +60,7 @@ evas_common_font_source_load(const char *name)
|
|||
return fs;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_source_load_complete(RGBA_Font_Source *fs)
|
||||
{
|
||||
int error;
|
||||
|
@ -75,7 +75,7 @@ evas_common_font_source_load_complete(RGBA_Font_Source *fs)
|
|||
return error;
|
||||
}
|
||||
|
||||
RGBA_Font_Source *
|
||||
EAPI RGBA_Font_Source *
|
||||
evas_common_font_source_find(const char *name)
|
||||
{
|
||||
Evas_Object_List *l;
|
||||
|
@ -97,7 +97,7 @@ evas_common_font_source_find(const char *name)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_source_free(RGBA_Font_Source *fs)
|
||||
{
|
||||
fs->references--;
|
||||
|
@ -110,7 +110,7 @@ evas_common_font_source_free(RGBA_Font_Source *fs)
|
|||
free(fs);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_size_use(RGBA_Font *fn)
|
||||
{
|
||||
Evas_List *l;
|
||||
|
@ -128,7 +128,7 @@ evas_common_font_size_use(RGBA_Font *fn)
|
|||
}
|
||||
}
|
||||
|
||||
RGBA_Font_Int *
|
||||
EAPI RGBA_Font_Int *
|
||||
evas_common_font_int_memory_load(const char *name, int size, const void *data, int data_size)
|
||||
{
|
||||
RGBA_Font_Int *fi;
|
||||
|
@ -157,7 +157,7 @@ evas_common_font_int_memory_load(const char *name, int size, const void *data, i
|
|||
return fi;
|
||||
}
|
||||
|
||||
RGBA_Font_Int *
|
||||
EAPI RGBA_Font_Int *
|
||||
evas_common_font_int_load(const char *name, int size)
|
||||
{
|
||||
RGBA_Font_Int *fi;
|
||||
|
@ -183,7 +183,7 @@ evas_common_font_int_load(const char *name, int size)
|
|||
return evas_common_font_int_load_init(fi);
|
||||
}
|
||||
|
||||
RGBA_Font_Int *
|
||||
EAPI RGBA_Font_Int *
|
||||
evas_common_font_int_load_init(RGBA_Font_Int *fi)
|
||||
{
|
||||
fi->ft.size = NULL;
|
||||
|
@ -194,7 +194,7 @@ evas_common_font_int_load_init(RGBA_Font_Int *fi)
|
|||
return fi;
|
||||
}
|
||||
|
||||
RGBA_Font_Int *
|
||||
EAPI RGBA_Font_Int *
|
||||
evas_common_font_int_load_complete(RGBA_Font_Int *fi)
|
||||
{
|
||||
int error;
|
||||
|
@ -245,7 +245,7 @@ evas_common_font_int_load_complete(RGBA_Font_Int *fi)
|
|||
|
||||
return fi;
|
||||
}
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_memory_load(const char *name, int size, const void *data, int data_size)
|
||||
{
|
||||
RGBA_Font *fn;
|
||||
|
@ -265,7 +265,7 @@ evas_common_font_memory_load(const char *name, int size, const void *data, int d
|
|||
return fn;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_load(const char *name, int size)
|
||||
{
|
||||
RGBA_Font *fn;
|
||||
|
@ -302,7 +302,7 @@ evas_common_font_load(const char *name, int size)
|
|||
return fn;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_add(RGBA_Font *fn, const char *name, int size)
|
||||
{
|
||||
RGBA_Font_Int *fi;
|
||||
|
@ -319,7 +319,7 @@ evas_common_font_add(RGBA_Font *fn, const char *name, int size)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_memory_add(RGBA_Font *fn, const char *name, int size, const void *data, int data_size)
|
||||
{
|
||||
RGBA_Font_Int *fi;
|
||||
|
@ -336,7 +336,7 @@ evas_common_font_memory_add(RGBA_Font *fn, const char *name, int size, const voi
|
|||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_free(RGBA_Font *fn)
|
||||
{
|
||||
Evas_List *l;
|
||||
|
@ -359,7 +359,7 @@ evas_common_font_free(RGBA_Font *fn)
|
|||
free(fn);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
|
||||
{
|
||||
Evas_List *l;
|
||||
|
@ -376,7 +376,7 @@ evas_common_font_hinting_set(RGBA_Font *fn, Font_Hint_Flags hinting)
|
|||
}
|
||||
}
|
||||
|
||||
Evas_Bool
|
||||
EAPI Evas_Bool
|
||||
evas_common_hinting_available(Font_Hint_Flags hinting)
|
||||
{
|
||||
if (hinting == FONT_NO_HINT) return 1;
|
||||
|
@ -399,7 +399,7 @@ evas_common_hinting_available(Font_Hint_Flags hinting)
|
|||
return 0;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_memory_hinting_load(const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting)
|
||||
{
|
||||
RGBA_Font *fn;
|
||||
|
@ -409,7 +409,7 @@ evas_common_font_memory_hinting_load(const char *name, int size, const void *dat
|
|||
return fn;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_hinting_load(const char *name, int size, Font_Hint_Flags hinting)
|
||||
{
|
||||
RGBA_Font *fn;
|
||||
|
@ -419,7 +419,7 @@ evas_common_font_hinting_load(const char *name, int size, Font_Hint_Flags hintin
|
|||
return fn;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
EAPI RGBA_Font *
|
||||
evas_common_font_hinting_add(RGBA_Font *fn, const char *name, int size, Font_Hint_Flags hinting)
|
||||
{
|
||||
fn = evas_common_font_add(fn, name, size);
|
||||
|
@ -427,7 +427,7 @@ evas_common_font_hinting_add(RGBA_Font *fn, const char *name, int size, Font_Hin
|
|||
return fn;
|
||||
}
|
||||
|
||||
RGBA_Font *
|
||||
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)
|
||||
{
|
||||
fn = evas_common_font_memory_add(fn, name, size, data, data_size);
|
||||
|
@ -451,7 +451,7 @@ font_modify_cache_cb(Evas_Hash *hash, const char *key, void *data, void *fdata)
|
|||
key = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_int_modify_cache_by(RGBA_Font_Int *fi, int dir)
|
||||
{
|
||||
int sz_hash = 0;
|
||||
|
@ -462,20 +462,20 @@ evas_common_font_int_modify_cache_by(RGBA_Font_Int *fi, int dir)
|
|||
sizeof(FT_FaceRec) + 16384); /* fudge values */
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_cache_get(void)
|
||||
{
|
||||
return font_cache;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_cache_set(int size)
|
||||
{
|
||||
font_cache = size;
|
||||
evas_common_font_flush();
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_flush(void)
|
||||
{
|
||||
if (font_cache_usage < font_cache) return;
|
||||
|
@ -498,7 +498,7 @@ font_flush_free_glyph_cb(Evas_Hash *hash, const char *key, void *data, void *fda
|
|||
fdata = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_flush_last(void)
|
||||
{
|
||||
Evas_Object_List *l;
|
||||
|
@ -526,7 +526,7 @@ evas_common_font_flush_last(void)
|
|||
free(fi);
|
||||
}
|
||||
|
||||
RGBA_Font_Int *
|
||||
EAPI RGBA_Font_Int *
|
||||
evas_common_font_int_find(const char *name, int size)
|
||||
{
|
||||
Evas_Object_List *l;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
FT_Library evas_ft_lib = 0;
|
||||
static int initialised = 0;
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_init(void)
|
||||
{
|
||||
int error;
|
||||
|
@ -18,7 +18,7 @@ evas_common_font_init(void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_shutdown(void)
|
||||
{
|
||||
int error;
|
||||
|
@ -28,7 +28,7 @@ evas_common_font_shutdown(void)
|
|||
error = FT_Done_FreeType(evas_ft_lib);
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_ascent_get(RGBA_Font *fn)
|
||||
{
|
||||
int val, dv;
|
||||
|
@ -45,7 +45,7 @@ evas_common_font_ascent_get(RGBA_Font *fn)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_descent_get(RGBA_Font *fn)
|
||||
{
|
||||
int val, dv;
|
||||
|
@ -62,7 +62,7 @@ evas_common_font_descent_get(RGBA_Font *fn)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_max_ascent_get(RGBA_Font *fn)
|
||||
{
|
||||
int val, dv;
|
||||
|
@ -79,7 +79,7 @@ evas_common_font_max_ascent_get(RGBA_Font *fn)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_max_descent_get(RGBA_Font *fn)
|
||||
{
|
||||
int val, dv;
|
||||
|
@ -96,7 +96,7 @@ evas_common_font_max_descent_get(RGBA_Font *fn)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_get_line_advance(RGBA_Font *fn)
|
||||
{
|
||||
int val, dv;
|
||||
|
@ -113,7 +113,7 @@ evas_common_font_get_line_advance(RGBA_Font *fn)
|
|||
return ret;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
|
||||
{
|
||||
/* Reads UTF8 bytes from @buf, starting at *@index and returns
|
||||
|
@ -173,7 +173,7 @@ evas_common_font_utf8_get_next(unsigned char *buf, int *iindex)
|
|||
return r;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_utf8_get_prev(unsigned char *buf, int *iindex)
|
||||
{
|
||||
/* Reads UTF8 bytes from @buf, starting at *@index and returns
|
||||
|
@ -259,7 +259,7 @@ evas_common_font_utf8_get_prev(unsigned char *buf, int *iindex)
|
|||
return r;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_utf8_get_last(unsigned char *buf, int buflen)
|
||||
{
|
||||
/* jumps to the nul byte at the buffer end and decodes backwards and
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include "evas_common.h"
|
||||
|
||||
/* string extents */
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_query_size(RGBA_Font *fn, const char *text, int *w, int *h)
|
||||
{
|
||||
int use_kerning;
|
||||
|
@ -76,7 +76,7 @@ evas_common_font_query_size(RGBA_Font *fn, const char *text, int *w, int *h)
|
|||
}
|
||||
|
||||
/* text x inset */
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_query_inset(RGBA_Font *fn, const char *text)
|
||||
{
|
||||
FT_UInt index;
|
||||
|
@ -99,7 +99,7 @@ evas_common_font_query_inset(RGBA_Font *fn, const char *text)
|
|||
}
|
||||
|
||||
/* h & v advance */
|
||||
void
|
||||
EAPI void
|
||||
evas_common_font_query_advance(RGBA_Font *fn, const char *text, int *h_adv, int *v_adv)
|
||||
{
|
||||
int use_kerning;
|
||||
|
@ -156,7 +156,7 @@ evas_common_font_query_advance(RGBA_Font *fn, const char *text, int *h_adv, int
|
|||
}
|
||||
|
||||
/* x y w h for char at char pos */
|
||||
int
|
||||
EAPI int
|
||||
evas_common_font_query_char_coords(RGBA_Font *fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch)
|
||||
{
|
||||
int use_kerning;
|
||||
|
@ -242,7 +242,7 @@ evas_common_font_query_char_coords(RGBA_Font *fn, const char *text, int pos, int
|
|||
}
|
||||
|
||||
/* char pos of text at xy pos */
|
||||
int
|
||||
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)
|
||||
{
|
||||
int use_kerning;
|
||||
|
|
|
@ -54,7 +54,7 @@ evas_common_gradient_get_key_fval(char *in, char *key, float *val)
|
|||
return (pp + 1);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_init(void)
|
||||
{
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ evas_common_gradient_shutdown(void)
|
|||
{
|
||||
}
|
||||
|
||||
RGBA_Gradient *
|
||||
EAPI RGBA_Gradient *
|
||||
evas_common_gradient_new(void)
|
||||
{
|
||||
RGBA_Gradient *gr;
|
||||
|
@ -73,7 +73,7 @@ evas_common_gradient_new(void)
|
|||
return gr;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_free(RGBA_Gradient *gr)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -84,7 +84,7 @@ evas_common_gradient_free(RGBA_Gradient *gr)
|
|||
free(gr);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_colors_clear(RGBA_Gradient *gr)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -105,7 +105,7 @@ evas_common_gradient_colors_clear(RGBA_Gradient *gr)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_color_add(RGBA_Gradient *gr, int r, int g, int b, int a, int dist)
|
||||
{
|
||||
RGBA_Gradient_Color *gc, *gcm, *gc_last;
|
||||
|
@ -154,7 +154,7 @@ evas_common_gradient_color_add(RGBA_Gradient *gr, int r, int g, int b, int a, in
|
|||
gr->has_alpha = 1;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_data_set(RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags)
|
||||
{
|
||||
if (!gr || !data || (len < 1)) return;
|
||||
|
@ -169,7 +169,7 @@ evas_common_gradient_data_set(RGBA_Gradient *gr, DATA32 *data, int len, int alph
|
|||
gr->map.has_alpha = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_data_unset(RGBA_Gradient *gr)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -184,7 +184,7 @@ evas_common_gradient_data_unset(RGBA_Gradient *gr)
|
|||
gr->map.has_alpha = 0;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_type_set(RGBA_Gradient *gr, char *name)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -195,7 +195,7 @@ evas_common_gradient_type_set(RGBA_Gradient *gr, char *name)
|
|||
gr->type.name = strdup(gr->type.geometer->name);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_type_params_set(RGBA_Gradient *gr, char *params)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -206,7 +206,7 @@ evas_common_gradient_type_params_set(RGBA_Gradient *gr, char *params)
|
|||
if (params) gr->type.params = strdup(params);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_fill_set(RGBA_Gradient *gr, int x, int y, int w, int h)
|
||||
{
|
||||
if (!gr) return;
|
||||
|
@ -216,14 +216,14 @@ evas_common_gradient_fill_set(RGBA_Gradient *gr, int x, int y, int w, int h)
|
|||
gr->fill.h = h;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_range_offset_set(RGBA_Gradient *gr, float offset)
|
||||
{
|
||||
if (!gr) return;
|
||||
gr->range_offset = offset;
|
||||
}
|
||||
|
||||
RGBA_Gradient *
|
||||
EAPI RGBA_Gradient *
|
||||
evas_common_gradient_geometry_init(RGBA_Gradient *gr, int spread)
|
||||
{
|
||||
if (!gr) return NULL;
|
||||
|
@ -237,7 +237,7 @@ evas_common_gradient_geometry_init(RGBA_Gradient *gr, int spread)
|
|||
return gr;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_gradient_has_alpha(RGBA_Gradient *gr, int spread, int op)
|
||||
{
|
||||
if (!gr || !gr->type.geometer) return 0;
|
||||
|
@ -245,7 +245,7 @@ evas_common_gradient_has_alpha(RGBA_Gradient *gr, int spread, int op)
|
|||
gr->type.geometer->has_mask(gr, spread, op));
|
||||
}
|
||||
|
||||
RGBA_Gradient_Type *
|
||||
EAPI RGBA_Gradient_Type *
|
||||
evas_common_gradient_geometer_get(char *name)
|
||||
{
|
||||
RGBA_Gradient_Type *geom = NULL;
|
||||
|
@ -268,7 +268,7 @@ evas_common_gradient_geometer_get(char *name)
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_draw(RGBA_Image *dst, RGBA_Draw_Context *dc,
|
||||
int x, int y, int w, int h, RGBA_Gradient *gr,
|
||||
double angle, int spread)
|
||||
|
@ -713,7 +713,7 @@ evas_common_gradient_map_ahsv(RGBA_Draw_Context *dc, RGBA_Gradient *gr, int spre
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_gradient_map(RGBA_Draw_Context *dc, RGBA_Gradient *gr, int spread)
|
||||
{
|
||||
if (!gr || !dc) return;
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
extern Evas_List *evas_modules;
|
||||
|
||||
RGBA_Image *
|
||||
EAPI RGBA_Image *
|
||||
evas_common_load_image_from_file(const char *file, const char *key, RGBA_Image_Loadopts *lo)
|
||||
{
|
||||
Evas_Image_Load_Func *evas_image_load_func = NULL;
|
||||
|
@ -93,7 +93,7 @@ evas_common_load_image_from_file(const char *file, const char *key, RGBA_Image_L
|
|||
return im;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_load_image_data_from_file(RGBA_Image *im)
|
||||
{
|
||||
Evas_Image_Load_Func *evas_image_load_func = NULL;
|
||||
|
|
|
@ -70,7 +70,7 @@ image_debug(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_init(void)
|
||||
{
|
||||
#ifdef BUILD_LOADER_EET
|
||||
|
@ -78,7 +78,7 @@ evas_common_image_init(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_shutdown(void)
|
||||
{
|
||||
#ifdef BUILD_LOADER_EET
|
||||
|
@ -152,7 +152,7 @@ evas_common_image_surface_alpha_tiles_calc(RGBA_Surface *is, int tsize)
|
|||
}
|
||||
#endif
|
||||
|
||||
RGBA_Surface *
|
||||
EAPI RGBA_Surface *
|
||||
evas_common_image_surface_new(RGBA_Image *im)
|
||||
{
|
||||
RGBA_Surface *is;
|
||||
|
@ -162,14 +162,14 @@ evas_common_image_surface_new(RGBA_Image *im)
|
|||
return is;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_surface_free(RGBA_Surface *is)
|
||||
{
|
||||
evas_common_image_surface_dealloc(is);
|
||||
free(is);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_surface_alloc(RGBA_Surface *is)
|
||||
{
|
||||
size_t siz = 0;
|
||||
|
@ -186,7 +186,7 @@ evas_common_image_surface_alloc(RGBA_Surface *is)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_surface_dealloc(RGBA_Surface *is)
|
||||
{
|
||||
if ((is->data) && (!is->no_free))
|
||||
|
@ -196,7 +196,7 @@ evas_common_image_surface_dealloc(RGBA_Surface *is)
|
|||
}
|
||||
}
|
||||
|
||||
RGBA_Image *
|
||||
EAPI RGBA_Image *
|
||||
evas_common_image_create(int w, int h)
|
||||
{
|
||||
RGBA_Image *im;
|
||||
|
@ -222,7 +222,7 @@ evas_common_image_create(int w, int h)
|
|||
return im;
|
||||
}
|
||||
|
||||
RGBA_Image *
|
||||
EAPI RGBA_Image *
|
||||
evas_common_image_alpha_create(int w, int h)
|
||||
{
|
||||
RGBA_Image *im;
|
||||
|
@ -249,7 +249,7 @@ evas_common_image_alpha_create(int w, int h)
|
|||
return im;
|
||||
}
|
||||
|
||||
RGBA_Image *
|
||||
EAPI RGBA_Image *
|
||||
evas_common_image_new(void)
|
||||
{
|
||||
RGBA_Image *im;
|
||||
|
@ -260,7 +260,7 @@ evas_common_image_new(void)
|
|||
return im;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_free(RGBA_Image *im)
|
||||
{
|
||||
if (im->image) evas_common_image_surface_free(im->image);
|
||||
|
@ -271,7 +271,7 @@ evas_common_image_free(RGBA_Image *im)
|
|||
free(im);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_ref(RGBA_Image *im)
|
||||
{
|
||||
im->references++;
|
||||
|
@ -282,7 +282,7 @@ evas_common_image_ref(RGBA_Image *im)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_unref(RGBA_Image *im)
|
||||
{
|
||||
im->references--;
|
||||
|
@ -302,7 +302,7 @@ evas_common_image_unref(RGBA_Image *im)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_cache(RGBA_Image *im)
|
||||
{
|
||||
int ram;
|
||||
|
@ -315,7 +315,7 @@ evas_common_image_cache(RGBA_Image *im)
|
|||
evas_common_image_flush_cache();
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_uncache(RGBA_Image *im)
|
||||
{
|
||||
int ram;
|
||||
|
@ -327,7 +327,7 @@ evas_common_image_uncache(RGBA_Image *im)
|
|||
cache_usage -= ram;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_flush_cache(void)
|
||||
{
|
||||
Evas_Object_List *l, *l_next;
|
||||
|
@ -348,20 +348,20 @@ evas_common_image_flush_cache(void)
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_set_cache(int size)
|
||||
{
|
||||
cache_size = size;
|
||||
evas_common_image_flush_cache();
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_image_get_cache(void)
|
||||
{
|
||||
return cache_size;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_store(RGBA_Image *im)
|
||||
{
|
||||
char buf[4096 + 1204];
|
||||
|
@ -389,7 +389,7 @@ evas_common_image_store(RGBA_Image *im)
|
|||
im->flags |= RGBA_IMAGE_INDEXED;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_unstore(RGBA_Image *im)
|
||||
{
|
||||
char buf[4096 + 1024];
|
||||
|
@ -417,7 +417,7 @@ evas_common_image_unstore(RGBA_Image *im)
|
|||
}
|
||||
|
||||
|
||||
RGBA_Image *
|
||||
EAPI RGBA_Image *
|
||||
evas_common_image_find(const char *file, const char *key, DATA64 timestamp, RGBA_Image_Loadopts *lo)
|
||||
{
|
||||
RGBA_Image *im;
|
||||
|
@ -466,7 +466,7 @@ evas_common_image_find(const char *file, const char *key, DATA64 timestamp, RGBA
|
|||
return NULL;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_image_ram_usage(RGBA_Image *im)
|
||||
{
|
||||
int ram = 0;
|
||||
|
@ -481,14 +481,14 @@ evas_common_image_ram_usage(RGBA_Image *im)
|
|||
return ram;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_dirty(RGBA_Image *im)
|
||||
{
|
||||
evas_common_image_unstore(im);
|
||||
im->flags |= RGBA_IMAGE_IS_DIRTY;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_image_cache_free(void)
|
||||
{
|
||||
evas_common_image_set_cache(0);
|
||||
|
|
|
@ -33,12 +33,12 @@ _evas_draw_line_aa(RGBA_Image *dst, RGBA_Draw_Context *dc, int x0, int y0, int x
|
|||
}
|
||||
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_line_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_line_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, int x0, int y0, int x1, int y1)
|
||||
{
|
||||
int x, y, w, h;
|
||||
|
|
|
@ -60,12 +60,12 @@ struct _RGBA_Vertex
|
|||
num_active_edges++; \
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_polygon_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
RGBA_Polygon_Point *
|
||||
EAPI RGBA_Polygon_Point *
|
||||
evas_common_polygon_point_add(RGBA_Polygon_Point *points, int x, int y)
|
||||
{
|
||||
RGBA_Polygon_Point *pt;
|
||||
|
@ -78,7 +78,7 @@ evas_common_polygon_point_add(RGBA_Polygon_Point *points, int x, int y)
|
|||
return points;
|
||||
}
|
||||
|
||||
RGBA_Polygon_Point *
|
||||
EAPI RGBA_Polygon_Point *
|
||||
evas_common_polygon_points_clear(RGBA_Polygon_Point *points)
|
||||
{
|
||||
if (points)
|
||||
|
@ -117,7 +117,7 @@ polygon_edge_sorter(const void *a, const void *b)
|
|||
return 1;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_polygon_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point *points)
|
||||
{
|
||||
RGBA_Gfx_Func func;
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
|
||||
static void rectangle_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_rectangle_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_rectangle_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h)
|
||||
{
|
||||
int c, cx, cy, cw, ch;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include "evas_common.h"
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_init(void)
|
||||
{
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ void scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
|
|||
|
||||
#ifndef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_SCALE_SAMPLE
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_in_to_out_clip_smooth(RGBA_Image *src, RGBA_Image *dst,
|
||||
RGBA_Draw_Context *dc,
|
||||
int src_region_x, int src_region_y,
|
||||
|
@ -22,7 +22,7 @@ evas_common_scale_rgba_in_to_out_clip_smooth(RGBA_Image *src, RGBA_Image *dst,
|
|||
#endif
|
||||
|
||||
#ifdef BUILD_SCALE_SAMPLE
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_in_to_out_clip_sample(RGBA_Image *src, RGBA_Image *dst,
|
||||
RGBA_Draw_Context *dc,
|
||||
int src_region_x, int src_region_y,
|
||||
|
@ -314,7 +314,7 @@ scale_rgba_in_to_out_clip_sample_internal(RGBA_Image *src, RGBA_Image *dst,
|
|||
}
|
||||
#else
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_in_to_out_clip_sample(RGBA_Image *src, RGBA_Image *dst,
|
||||
RGBA_Draw_Context *dc,
|
||||
int src_region_x, int src_region_y,
|
||||
|
|
|
@ -82,7 +82,7 @@ scale_calc_a_points(int s, int d)
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_2x2_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -119,7 +119,7 @@ evas_common_scale_rgba_mipmap_down_2x2_c(DATA32 *src, DATA32 *dst, int src_w, in
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_2x1_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -153,7 +153,7 @@ evas_common_scale_rgba_mipmap_down_2x1_c(DATA32 *src, DATA32 *dst, int src_w, in
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_1x2_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -190,7 +190,7 @@ evas_common_scale_rgba_mipmap_down_1x2_c(DATA32 *src, DATA32 *dst, int src_w, in
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgb_mipmap_down_2x2_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -227,7 +227,7 @@ evas_common_scale_rgb_mipmap_down_2x2_c(DATA32 *src, DATA32 *dst, int src_w, int
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgb_mipmap_down_2x1_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -261,7 +261,7 @@ evas_common_scale_rgb_mipmap_down_2x1_c(DATA32 *src, DATA32 *dst, int src_w, int
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_C
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgb_mipmap_down_1x2_c(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -298,7 +298,7 @@ evas_common_scale_rgb_mipmap_down_1x2_c(DATA32 *src, DATA32 *dst, int src_w, int
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_MMX
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_2x2_mmx(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -345,7 +345,7 @@ evas_common_scale_rgba_mipmap_down_2x2_mmx(DATA32 *src, DATA32 *dst, int src_w,
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_MMX
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_2x1_mmx(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -383,7 +383,7 @@ evas_common_scale_rgba_mipmap_down_2x1_mmx(DATA32 *src, DATA32 *dst, int src_w,
|
|||
|
||||
#ifdef BUILD_SCALE_SMOOTH
|
||||
#ifdef BUILD_MMX
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_mipmap_down_1x2_mmx(DATA32 *src, DATA32 *dst, int src_w, int src_h)
|
||||
{
|
||||
int x, y, dst_w, dst_h;
|
||||
|
@ -436,7 +436,7 @@ evas_common_scale_rgba_mipmap_down_1x2_mmx(DATA32 *src, DATA32 *dst, int src_w,
|
|||
# undef SCALE_USING_MMX
|
||||
# include "evas_scale_smooth_scaler.c"
|
||||
# endif
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_in_to_out_clip_smooth(RGBA_Image *src, RGBA_Image *dst,
|
||||
RGBA_Draw_Context *dc,
|
||||
int src_region_x, int src_region_y,
|
||||
|
@ -743,7 +743,7 @@ evas_common_scale_rgba_span_mmx(DATA32 *src, int src_len, DATA32 mul_col, DATA32
|
|||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_scale_rgba_span(DATA32 *src, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len)
|
||||
{
|
||||
#ifdef BUILD_MMX
|
||||
|
|
|
@ -10,12 +10,12 @@ static int tilebuf_intersect(int tsize, int tlen, int tnum, int x, int w, int *
|
|||
#endif
|
||||
static void tilebuf_setup(Tilebuf *tb);
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
Tilebuf *
|
||||
EAPI Tilebuf *
|
||||
evas_common_tilebuf_new(int w, int h)
|
||||
{
|
||||
Tilebuf *tb;
|
||||
|
@ -31,7 +31,7 @@ evas_common_tilebuf_new(int w, int h)
|
|||
return tb;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_free(Tilebuf *tb)
|
||||
{
|
||||
#ifdef RECTUPDATE
|
||||
|
@ -42,7 +42,7 @@ evas_common_tilebuf_free(Tilebuf *tb)
|
|||
free(tb);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_set_tile_size(Tilebuf *tb, int tw, int th)
|
||||
{
|
||||
tb->tile_size.w = tw;
|
||||
|
@ -50,14 +50,14 @@ evas_common_tilebuf_set_tile_size(Tilebuf *tb, int tw, int th)
|
|||
tilebuf_setup(tb);
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_get_tile_size(Tilebuf *tb, int *tw, int *th)
|
||||
{
|
||||
if (tw) *tw = tb->tile_size.w;
|
||||
if (th) *th = tb->tile_size.h;
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_tilebuf_add_redraw(Tilebuf *tb, int x, int y, int w, int h)
|
||||
{
|
||||
#ifdef RECTUPDATE
|
||||
|
@ -98,7 +98,7 @@ evas_common_tilebuf_add_redraw(Tilebuf *tb, int x, int y, int w, int h)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_tilebuf_del_redraw(Tilebuf *tb, int x, int y, int w, int h)
|
||||
{
|
||||
#ifdef RECTUPDATE
|
||||
|
@ -136,7 +136,7 @@ evas_common_tilebuf_del_redraw(Tilebuf *tb, int x, int y, int w, int h)
|
|||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
evas_common_tilebuf_add_motion_vector(Tilebuf *tb, int x, int y, int w, int h, int dx, int dy, int alpha)
|
||||
{
|
||||
/* FIXME: need to actually impliment motion vectors. for now it just */
|
||||
|
@ -148,7 +148,7 @@ evas_common_tilebuf_add_motion_vector(Tilebuf *tb, int x, int y, int w, int h, i
|
|||
return num;
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_clear(Tilebuf *tb)
|
||||
{
|
||||
#ifdef RECTUPDATE
|
||||
|
@ -159,7 +159,7 @@ evas_common_tilebuf_clear(Tilebuf *tb)
|
|||
#endif
|
||||
}
|
||||
|
||||
Tilebuf_Rect *
|
||||
EAPI Tilebuf_Rect *
|
||||
evas_common_tilebuf_get_render_rects(Tilebuf *tb)
|
||||
{
|
||||
#ifdef RECTUPDATE
|
||||
|
@ -232,7 +232,7 @@ evas_common_tilebuf_get_render_rects(Tilebuf *tb)
|
|||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
EAPI void
|
||||
evas_common_tilebuf_free_render_rects(Tilebuf_Rect *rects)
|
||||
{
|
||||
while (rects)
|
||||
|
|
|
@ -319,7 +319,7 @@ evas_module_shutdown(void)
|
|||
}
|
||||
}
|
||||
|
||||
int
|
||||
EAPI int
|
||||
_evas_module_engine_inherit(Evas_Func *funcs, char *name)
|
||||
{
|
||||
Evas_Module *em;
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
#ifndef _WIN32_WCE
|
||||
typedef unsigned long long DATA64;
|
||||
#else
|
||||
typedef unsigned __int64 DATA64;
|
||||
typedef unsigned __int64 DATA64;
|
||||
#define strdup _strdup
|
||||
#define snprintf _snprintf
|
||||
#define rewind(f) fseek(f,0,SEEK_SET)
|
||||
|
@ -109,7 +109,7 @@ typedef struct _Tilebuf Tilebuf;
|
|||
typedef struct _Tilebuf_Tile Tilebuf_Tile;
|
||||
typedef struct _Tilebuf_Rect Tilebuf_Rect;
|
||||
|
||||
typedef struct _Evas_Array_Hash Evas_Array_Hash;
|
||||
typedef struct _Evas_Array_Hash Evas_Array_Hash;
|
||||
|
||||
/*
|
||||
typedef struct _Regionbuf Regionbuf;
|
||||
|
@ -527,15 +527,15 @@ void *evas_object_list_find (void *in_list, void *in_item);
|
|||
void evas_common_init (void);
|
||||
void evas_common_shutdown (void);
|
||||
|
||||
void evas_common_cpu_init (void);
|
||||
EAPI void evas_common_cpu_init (void);
|
||||
|
||||
int evas_common_cpu_have_cpuid (void);
|
||||
int evas_common_cpu_has_feature (unsigned int feature);
|
||||
void evas_common_cpu_can_do (int *mmx, int *sse, int *sse2);
|
||||
void evas_common_cpu_end_opt (void);
|
||||
EAPI void evas_common_cpu_can_do (int *mmx, int *sse, int *sse2);
|
||||
EAPI void evas_common_cpu_end_opt (void);
|
||||
|
||||
/****/
|
||||
void evas_common_blend_init (void);
|
||||
EAPI void evas_common_blend_init (void);
|
||||
|
||||
void evas_common_blend_init_evas_pow_lut (void);
|
||||
void evas_common_blend_free_evas_pow_lut (void);
|
||||
|
@ -563,12 +563,12 @@ RGBA_Gfx_Pt_Func evas_common_gfx_func_composite_pixel_color_pt_get (int src_
|
|||
RGBA_Gfx_Pt_Func evas_common_gfx_func_composite_mask_color_pt_get (DATA32 col, RGBA_Image *dst, int op);
|
||||
RGBA_Gfx_Pt_Func evas_common_gfx_func_composite_pixel_mask_pt_get (int src_flags, RGBA_Image *dst, int op);
|
||||
|
||||
Gfx_Func_Copy evas_common_draw_func_copy_get (int pixels, int reverse);
|
||||
EAPI Gfx_Func_Copy evas_common_draw_func_copy_get (int pixels, int reverse);
|
||||
|
||||
/****/
|
||||
|
||||
void evas_common_convert_init (void);
|
||||
Gfx_Func_Convert evas_common_convert_func_get (DATA8 *dest, int w, int h, int depth, DATA32 rmask, DATA32 gmask, DATA32 bmask, Convert_Pal_Mode pal_mode, int rotation);
|
||||
EAPI void evas_common_convert_init (void);
|
||||
EAPI Gfx_Func_Convert evas_common_convert_func_get (DATA8 *dest, int w, int h, int depth, DATA32 rmask, DATA32 gmask, DATA32 bmask, Convert_Pal_Mode pal_mode, int rotation);
|
||||
|
||||
void evas_common_convert_rgba2_to_16bpp_rgb_565_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal);
|
||||
void evas_common_convert_rgba_to_16bpp_rgb_565_dith (DATA32 *src, DATA8 *dst, int src_jump, int dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal);
|
||||
|
@ -639,57 +639,57 @@ void evas_common_convert_hsv_to_rgb_int (int h, int s, int v, in
|
|||
void evas_common_convert_rgb_to_hsv_int (int r, int g, int b, int *h, int *s, int *v);
|
||||
|
||||
/****/
|
||||
void evas_common_scale_init (void);
|
||||
EAPI void evas_common_scale_init (void);
|
||||
|
||||
void evas_common_scale_rgba_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgba_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgba_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgb_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgb_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgb_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgb_mipmap_down_2x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgb_mipmap_down_2x1_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgb_mipmap_down_1x2_c (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
|
||||
void evas_common_scale_rgba_mipmap_down_2x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgba_mipmap_down_2x1_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
void evas_common_scale_rgba_mipmap_down_1x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_2x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_2x1_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
EAPI void evas_common_scale_rgba_mipmap_down_1x2_mmx (DATA32 *src, DATA32 *dst, int src_w, int src_h);
|
||||
|
||||
void evas_common_scale_rgba_in_to_out_clip_smooth_mmx (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
void evas_common_scale_rgba_in_to_out_clip_smooth_c (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
EAPI void evas_common_scale_rgba_in_to_out_clip_smooth_mmx (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
EAPI void evas_common_scale_rgba_in_to_out_clip_smooth_c (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
|
||||
void evas_common_scale_rgba_in_to_out_clip_smooth (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
void evas_common_scale_rgba_in_to_out_clip_sample (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
EAPI void evas_common_scale_rgba_in_to_out_clip_smooth (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
EAPI void evas_common_scale_rgba_in_to_out_clip_sample (RGBA_Image *src, RGBA_Image *dst, RGBA_Draw_Context *dc, int src_region_x, int src_region_y, int src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int dst_region_w, int dst_region_h);
|
||||
|
||||
void evas_common_scale_rgba_span (DATA32 *src, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len);
|
||||
EAPI void evas_common_scale_rgba_span (DATA32 *src, int src_len, DATA32 mul_col, DATA32 *dst, int dst_len);
|
||||
|
||||
/****/
|
||||
void evas_common_image_init (void);
|
||||
void evas_common_image_shutdown (void);
|
||||
EAPI void evas_common_image_init (void);
|
||||
EAPI void evas_common_image_shutdown (void);
|
||||
|
||||
RGBA_Surface *evas_common_image_surface_new (RGBA_Image *im);
|
||||
void evas_common_image_surface_free (RGBA_Surface *is);
|
||||
void evas_common_image_surface_alloc (RGBA_Surface *is);
|
||||
void evas_common_image_surface_dealloc (RGBA_Surface *is);
|
||||
EAPI RGBA_Surface *evas_common_image_surface_new (RGBA_Image *im);
|
||||
EAPI void evas_common_image_surface_free (RGBA_Surface *is);
|
||||
EAPI void evas_common_image_surface_alloc (RGBA_Surface *is);
|
||||
EAPI void evas_common_image_surface_dealloc (RGBA_Surface *is);
|
||||
|
||||
RGBA_Image *evas_common_image_alpha_create (int w, int h);
|
||||
RGBA_Image *evas_common_image_create (int w, int h);
|
||||
RGBA_Image *evas_common_image_new (void);
|
||||
void evas_common_image_free (RGBA_Image *im);
|
||||
void evas_common_image_ref (RGBA_Image *im);
|
||||
void evas_common_image_unref (RGBA_Image *im);
|
||||
void evas_common_image_cache (RGBA_Image *im);
|
||||
void evas_common_image_uncache (RGBA_Image *im);
|
||||
void evas_common_image_flush_cache (void);
|
||||
void evas_common_image_set_cache (int size);
|
||||
int evas_common_image_get_cache (void);
|
||||
void evas_common_image_store (RGBA_Image *im);
|
||||
void evas_common_image_unstore (RGBA_Image *im);
|
||||
RGBA_Image *evas_common_image_find (const char *file, const char *key, DATA64 timestamp, RGBA_Image_Loadopts *lo);
|
||||
int evas_common_image_ram_usage (RGBA_Image *im);
|
||||
void evas_common_image_dirty (RGBA_Image *im);
|
||||
void evas_common_image_cache_free (void);
|
||||
EAPI RGBA_Image *evas_common_image_alpha_create (int w, int h);
|
||||
EAPI RGBA_Image *evas_common_image_create (int w, int h);
|
||||
EAPI RGBA_Image *evas_common_image_new (void);
|
||||
EAPI void evas_common_image_free (RGBA_Image *im);
|
||||
EAPI void evas_common_image_ref (RGBA_Image *im);
|
||||
EAPI void evas_common_image_unref (RGBA_Image *im);
|
||||
EAPI void evas_common_image_cache (RGBA_Image *im);
|
||||
EAPI void evas_common_image_uncache (RGBA_Image *im);
|
||||
EAPI void evas_common_image_flush_cache (void);
|
||||
EAPI void evas_common_image_set_cache (int size);
|
||||
EAPI int evas_common_image_get_cache (void);
|
||||
EAPI void evas_common_image_store (RGBA_Image *im);
|
||||
EAPI void evas_common_image_unstore (RGBA_Image *im);
|
||||
EAPI RGBA_Image *evas_common_image_find (const char *file, const char *key, DATA64 timestamp, RGBA_Image_Loadopts *lo);
|
||||
EAPI int evas_common_image_ram_usage (RGBA_Image *im);
|
||||
EAPI void evas_common_image_dirty (RGBA_Image *im);
|
||||
EAPI void evas_common_image_cache_free (void);
|
||||
|
||||
RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, RGBA_Image_Loadopts *lo);
|
||||
void evas_common_load_image_data_from_file(RGBA_Image *im);
|
||||
int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress);
|
||||
EAPI RGBA_Image *evas_common_load_image_from_file (const char *file, const char *key, RGBA_Image_Loadopts *lo);
|
||||
EAPI void evas_common_load_image_data_from_file(RGBA_Image *im);
|
||||
EAPI int evas_common_save_image_to_file (RGBA_Image *im, const char *file, const char *key, int quality, int compress);
|
||||
|
||||
RGBA_Image *evas_common_image_line_buffer_obtain (int len);
|
||||
void evas_common_image_line_buffer_release (void);
|
||||
|
@ -701,113 +701,113 @@ void evas_common_image_alpha_line_buffer_free (void);
|
|||
|
||||
|
||||
/****/
|
||||
void evas_common_rectangle_init (void);
|
||||
EAPI void evas_common_rectangle_init (void);
|
||||
|
||||
void evas_common_rectangle_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
EAPI void evas_common_rectangle_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
|
||||
/****/
|
||||
void evas_common_gradient_init (void);
|
||||
EAPI void evas_common_gradient_init (void);
|
||||
|
||||
RGBA_Gradient *evas_common_gradient_new (void);
|
||||
void evas_common_gradient_free (RGBA_Gradient *gr);
|
||||
void evas_common_gradient_colors_clear (RGBA_Gradient *gr);
|
||||
void evas_common_gradient_color_add (RGBA_Gradient *gr, int r, int g, int b, int a, int dist);
|
||||
void evas_common_gradient_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
|
||||
void evas_common_gradient_data_unset (RGBA_Gradient *gr);
|
||||
void evas_common_gradient_type_set (RGBA_Gradient *gr, char *name);
|
||||
void evas_common_gradient_type_params_set (RGBA_Gradient *gr, char *params);
|
||||
void evas_common_gradient_fill_set (RGBA_Gradient *gr, int x, int y, int w, int h);
|
||||
void evas_common_gradient_range_offset_set(RGBA_Gradient *gr, float offset);
|
||||
RGBA_Gradient *evas_common_gradient_geometry_init (RGBA_Gradient *gr, int spread);
|
||||
int evas_common_gradient_has_alpha (RGBA_Gradient *gr, int spread, int op);
|
||||
void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int spread);
|
||||
void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr, double angle, int spread);
|
||||
EAPI RGBA_Gradient *evas_common_gradient_new (void);
|
||||
EAPI void evas_common_gradient_free (RGBA_Gradient *gr);
|
||||
EAPI void evas_common_gradient_colors_clear (RGBA_Gradient *gr);
|
||||
EAPI void evas_common_gradient_color_add (RGBA_Gradient *gr, int r, int g, int b, int a, int dist);
|
||||
EAPI void evas_common_gradient_data_set (RGBA_Gradient *gr, DATA32 *data, int len, int alpha_flags);
|
||||
EAPI void evas_common_gradient_data_unset (RGBA_Gradient *gr);
|
||||
EAPI void evas_common_gradient_type_set (RGBA_Gradient *gr, char *name);
|
||||
EAPI void evas_common_gradient_type_params_set (RGBA_Gradient *gr, 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_range_offset_set(RGBA_Gradient *gr, float offset);
|
||||
EAPI RGBA_Gradient *evas_common_gradient_geometry_init (RGBA_Gradient *gr, int spread);
|
||||
EAPI int evas_common_gradient_has_alpha (RGBA_Gradient *gr, int spread, int op);
|
||||
EAPI void evas_common_gradient_map (RGBA_Draw_Context *dc, RGBA_Gradient *gr, int spread);
|
||||
EAPI void evas_common_gradient_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h, RGBA_Gradient *gr, double angle, int spread);
|
||||
|
||||
RGBA_Gradient_Type *evas_common_gradient_geometer_get (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);
|
||||
RGBA_Gradient_Type *evas_common_gradient_geometer_get (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);
|
||||
|
||||
/****/
|
||||
void evas_common_line_init (void);
|
||||
EAPI void evas_common_line_init (void);
|
||||
|
||||
void evas_common_line_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x1, int y1, int x2, int y2);
|
||||
EAPI void evas_common_line_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, int x1, int y1, int x2, int y2);
|
||||
|
||||
/****/
|
||||
void evas_common_polygon_init (void);
|
||||
EAPI void evas_common_polygon_init (void);
|
||||
|
||||
RGBA_Polygon_Point *evas_common_polygon_point_add (RGBA_Polygon_Point *points, int x, int y);
|
||||
RGBA_Polygon_Point *evas_common_polygon_points_clear (RGBA_Polygon_Point *points);
|
||||
void evas_common_polygon_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Polygon_Point *points);
|
||||
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);
|
||||
|
||||
/****/
|
||||
void evas_common_blit_init (void);
|
||||
EAPI void evas_common_blit_init (void);
|
||||
|
||||
void evas_common_blit_rectangle (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_blit_rectangle (RGBA_Image *src, RGBA_Image *dst, int src_x, int src_y, int w, int h, int dst_x, int dst_y);
|
||||
|
||||
/****/
|
||||
|
||||
/****/
|
||||
void evas_common_font_init (void);
|
||||
void evas_common_font_shutdown (void);
|
||||
RGBA_Font_Source *evas_common_font_source_memory_load(const char *name, const void *data, int data_size);
|
||||
RGBA_Font_Source *evas_common_font_source_load (const char *name);
|
||||
int evas_common_font_source_load_complete(RGBA_Font_Source *fs);
|
||||
RGBA_Font_Source *evas_common_font_source_find (const char *name);
|
||||
void evas_common_font_source_free (RGBA_Font_Source *fs);
|
||||
void evas_common_font_size_use (RGBA_Font *fn);
|
||||
RGBA_Font *evas_common_font_memory_load (const char *name, int size, const void *data, int data_size);
|
||||
RGBA_Font *evas_common_font_load (const char *name, int size);
|
||||
RGBA_Font *evas_common_font_add (RGBA_Font *fn, const char *name, int size);
|
||||
RGBA_Font *evas_common_font_memory_add (RGBA_Font *fn, const char *name, int size, const void *data, int data_size);
|
||||
RGBA_Font_Int *evas_common_font_int_load_init (RGBA_Font_Int *fn);
|
||||
RGBA_Font_Int *evas_common_font_int_load_complete (RGBA_Font_Int *fi);
|
||||
void evas_common_font_free (RGBA_Font *fn);
|
||||
void evas_common_font_hinting_set (RGBA_Font *fn, Font_Hint_Flags hinting);
|
||||
Evas_Bool evas_common_hinting_available (Font_Hint_Flags hinting);
|
||||
RGBA_Font *evas_common_font_memory_hinting_load(const char *name, int size, const void *data, int data_size, Font_Hint_Flags hinting);
|
||||
RGBA_Font *evas_common_font_hinting_load (const char *name, int size, Font_Hint_Flags hinting);
|
||||
RGBA_Font *evas_common_font_hinting_add (RGBA_Font *fn, const char *name, int size, Font_Hint_Flags hinting);
|
||||
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);
|
||||
void evas_common_font_int_modify_cache_by(RGBA_Font_Int *fi, int dir);
|
||||
int evas_common_font_cache_get (void);
|
||||
void evas_common_font_cache_set (int size);
|
||||
void evas_common_font_flush (void);
|
||||
void evas_common_font_flush_last (void);
|
||||
RGBA_Font_Int *evas_common_font_int_find (const char *name, int size);
|
||||
int evas_common_font_glyph_search (RGBA_Font *fn, RGBA_Font_Int **fi_ret, int gl);
|
||||
void evas_common_font_draw (RGBA_Image *dst, RGBA_Draw_Context *dc, RGBA_Font *fn, int x, int y, const char *text);
|
||||
RGBA_Font_Glyph *evas_common_font_int_cache_glyph_get(RGBA_Font_Int *fi, FT_UInt index);
|
||||
int evas_common_font_ascent_get (RGBA_Font *fn);
|
||||
int evas_common_font_descent_get (RGBA_Font *fn);
|
||||
int evas_common_font_max_ascent_get (RGBA_Font *fn);
|
||||
int evas_common_font_max_descent_get (RGBA_Font *fn);
|
||||
int evas_common_font_get_line_advance (RGBA_Font *fn);
|
||||
void evas_common_font_query_size (RGBA_Font *fn, const char *text, int *w, int *h);
|
||||
int evas_common_font_query_inset (RGBA_Font *fn, const char *text);
|
||||
void evas_common_font_query_advance (RGBA_Font *fn, const char *text, int *h_adv, int *v_adv);
|
||||
int evas_common_font_query_char_coords (RGBA_Font *fn, const char *text, int pos, int *cx, int *cy, int *cw, int *ch);
|
||||
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);
|
||||
int evas_common_font_utf8_get_next (unsigned char *buf, int *iindex);
|
||||
int evas_common_font_utf8_get_prev (unsigned char *buf, int *iindex);
|
||||
int evas_common_font_utf8_get_last (unsigned char *buf, int buflen);
|
||||
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);
|
||||
|
||||
/****/
|
||||
void evas_common_tilebuf_init (void);
|
||||
EAPI void evas_common_tilebuf_init (void);
|
||||
|
||||
Tilebuf *evas_common_tilebuf_new (int w, int h);
|
||||
void evas_common_tilebuf_free (Tilebuf *tb);
|
||||
void evas_common_tilebuf_set_tile_size (Tilebuf *tb, int tw, int th);
|
||||
void evas_common_tilebuf_get_tile_size (Tilebuf *tb, int *tw, int *th);
|
||||
int evas_common_tilebuf_add_redraw (Tilebuf *tb, int x, int y, int w, int h);
|
||||
int evas_common_tilebuf_del_redraw (Tilebuf *tb, int x, int y, int w, int h);
|
||||
int evas_common_tilebuf_add_motion_vector (Tilebuf *tb, int x, int y, int w, int h, int dx, int dy, int alpha);
|
||||
void evas_common_tilebuf_clear (Tilebuf *tb);
|
||||
Tilebuf_Rect *evas_common_tilebuf_get_render_rects (Tilebuf *tb);
|
||||
void evas_common_tilebuf_free_render_rects (Tilebuf_Rect *rects);
|
||||
EAPI Tilebuf *evas_common_tilebuf_new (int w, int h);
|
||||
EAPI void evas_common_tilebuf_free (Tilebuf *tb);
|
||||
EAPI void evas_common_tilebuf_set_tile_size (Tilebuf *tb, int tw, int th);
|
||||
EAPI void evas_common_tilebuf_get_tile_size (Tilebuf *tb, int *tw, int *th);
|
||||
EAPI int evas_common_tilebuf_add_redraw (Tilebuf *tb, int x, int y, int w, int h);
|
||||
EAPI int evas_common_tilebuf_del_redraw (Tilebuf *tb, int x, int y, int w, int h);
|
||||
EAPI int evas_common_tilebuf_add_motion_vector (Tilebuf *tb, int x, int y, int w, int h, int dx, int dy, int alpha);
|
||||
EAPI void evas_common_tilebuf_clear (Tilebuf *tb);
|
||||
EAPI Tilebuf_Rect *evas_common_tilebuf_get_render_rects (Tilebuf *tb);
|
||||
EAPI void evas_common_tilebuf_free_render_rects (Tilebuf_Rect *rects);
|
||||
|
||||
/*
|
||||
Regionbuf *evas_common_regionbuf_new (int w, int h);
|
||||
|
@ -819,31 +819,31 @@ Tilebuf_Rect *evas_common_regionbuf_rects_get (Regionbuf *rb);
|
|||
*/
|
||||
|
||||
/****/
|
||||
void evas_common_draw_init (void);
|
||||
EAPI void evas_common_draw_init (void);
|
||||
|
||||
RGBA_Draw_Context *evas_common_draw_context_new (void);
|
||||
void evas_common_draw_context_free (RGBA_Draw_Context *dc);
|
||||
void evas_common_draw_context_font_ext_set (RGBA_Draw_Context *dc,
|
||||
void *data,
|
||||
void *(*gl_new) (void *data, RGBA_Font_Glyph *fg),
|
||||
void (*gl_free) (void *ext_dat),
|
||||
void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y));
|
||||
void evas_common_draw_context_clip_clip (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
void evas_common_draw_context_set_clip (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
void evas_common_draw_context_unset_clip (RGBA_Draw_Context *dc);
|
||||
void evas_common_draw_context_set_color (RGBA_Draw_Context *dc, int r, int g, int b, int a);
|
||||
void evas_common_draw_context_set_multiplier (RGBA_Draw_Context *dc, int r, int g, int b, int a);
|
||||
void evas_common_draw_context_unset_multiplier (RGBA_Draw_Context *dc);
|
||||
void evas_common_draw_context_add_cutout (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
void evas_common_draw_context_clear_cutouts (RGBA_Draw_Context *dc);
|
||||
Cutout_Rect *evas_common_draw_context_apply_cutouts (RGBA_Draw_Context *dc);
|
||||
void evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects);
|
||||
Cutout_Rect *evas_common_draw_context_cutouts_split (Cutout_Rect *in, Cutout_Rect *split);
|
||||
Cutout_Rect *evas_common_draw_context_cutout_split (Cutout_Rect *in, Cutout_Rect *split);
|
||||
Cutout_Rect *evas_common_draw_context_cutout_merge (Cutout_Rect *in, Cutout_Rect *merge);
|
||||
void evas_common_draw_context_set_anti_alias (RGBA_Draw_Context *dc, unsigned char aa);
|
||||
void evas_common_draw_context_set_color_interpolation (RGBA_Draw_Context *dc, int color_space);
|
||||
void evas_common_draw_context_set_render_op (RGBA_Draw_Context *dc, int op);
|
||||
EAPI RGBA_Draw_Context *evas_common_draw_context_new (void);
|
||||
EAPI void evas_common_draw_context_free (RGBA_Draw_Context *dc);
|
||||
EAPI void evas_common_draw_context_font_ext_set (RGBA_Draw_Context *dc,
|
||||
void *data,
|
||||
void *(*gl_new) (void *data, RGBA_Font_Glyph *fg),
|
||||
void (*gl_free) (void *ext_dat),
|
||||
void (*gl_draw) (void *data, void *dest, void *context, RGBA_Font_Glyph *fg, int x, int y));
|
||||
EAPI void evas_common_draw_context_clip_clip (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
EAPI void evas_common_draw_context_set_clip (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
EAPI void evas_common_draw_context_unset_clip (RGBA_Draw_Context *dc);
|
||||
EAPI void evas_common_draw_context_set_color (RGBA_Draw_Context *dc, int r, int g, int b, int a);
|
||||
EAPI void evas_common_draw_context_set_multiplier (RGBA_Draw_Context *dc, int r, int g, int b, int a);
|
||||
EAPI void evas_common_draw_context_unset_multiplier (RGBA_Draw_Context *dc);
|
||||
EAPI void evas_common_draw_context_add_cutout (RGBA_Draw_Context *dc, int x, int y, int w, int h);
|
||||
EAPI void evas_common_draw_context_clear_cutouts (RGBA_Draw_Context *dc);
|
||||
EAPI Cutout_Rect *evas_common_draw_context_apply_cutouts (RGBA_Draw_Context *dc);
|
||||
EAPI void evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects);
|
||||
EAPI Cutout_Rect *evas_common_draw_context_cutouts_split (Cutout_Rect *in, Cutout_Rect *split);
|
||||
EAPI Cutout_Rect *evas_common_draw_context_cutout_split (Cutout_Rect *in, Cutout_Rect *split);
|
||||
EAPI Cutout_Rect *evas_common_draw_context_cutout_merge (Cutout_Rect *in, Cutout_Rect *merge);
|
||||
EAPI void evas_common_draw_context_set_anti_alias (RGBA_Draw_Context *dc, unsigned char aa);
|
||||
EAPI void evas_common_draw_context_set_color_interpolation (RGBA_Draw_Context *dc, int color_space);
|
||||
EAPI void evas_common_draw_context_set_render_op (RGBA_Draw_Context *dc, int op);
|
||||
|
||||
void evas_font_dir_cache_free(void);
|
||||
|
||||
|
|
|
@ -744,7 +744,7 @@ Evas_Module * evas_module_find_type(Evas_Module_Type type, const char *name);
|
|||
int evas_module_load(Evas_Module *em);
|
||||
void evas_module_unload(Evas_Module *em);
|
||||
void evas_module_shutdown(void);
|
||||
int _evas_module_engine_inherit(Evas_Func *funcs, char *name);
|
||||
EAPI int _evas_module_engine_inherit(Evas_Func *funcs, char *name);
|
||||
|
||||
#define EVAS_API_OVERRIDE(func, api, prefix) \
|
||||
(api)->func = prefix##func
|
||||
|
|
Loading…
Reference in New Issue