summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorsebastid <sebastid>2006-09-06 07:33:40 +0000
committersebastid <sebastid@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2006-09-06 07:33:40 +0000
commite55f7b27b245effea73c7cf1d6b0038864bef34e (patch)
treed010f0a3ba04c85543212253d506bd6e69e8d09f /legacy/evas/src/lib/engines/common/evas_draw_main.c
parentec72116e3ced0fddd626fdaf9ea35cbfc38bce11 (diff)
Functions used by modules must be EAPI
SVN revision: 25526
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_draw_main.c b/legacy/evas/src/lib/engines/common/evas_draw_main.c
index b56f968f4f..7f940e6b4b 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -28,12 +28,12 @@ evas_common_shutdown(void)
28 evas_common_image_cache_free(); 28 evas_common_image_cache_free();
29} 29}
30 30
31void 31EAPI void
32evas_common_draw_init(void) 32evas_common_draw_init(void)
33{ 33{
34} 34}
35 35
36RGBA_Draw_Context * 36EAPI RGBA_Draw_Context *
37evas_common_draw_context_new(void) 37evas_common_draw_context_new(void)
38{ 38{
39 RGBA_Draw_Context *dc; 39 RGBA_Draw_Context *dc;
@@ -42,13 +42,13 @@ evas_common_draw_context_new(void)
42 return dc; 42 return dc;
43} 43}
44 44
45void 45EAPI void
46evas_common_draw_context_free(RGBA_Draw_Context *dc) 46evas_common_draw_context_free(RGBA_Draw_Context *dc)
47{ 47{
48 free(dc); 48 free(dc);
49} 49}
50 50
51void 51EAPI void
52evas_common_draw_context_font_ext_set(RGBA_Draw_Context *dc, 52evas_common_draw_context_font_ext_set(RGBA_Draw_Context *dc,
53 void *data, 53 void *data,
54 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg), 54 void *(*gl_new) (void *data, RGBA_Font_Glyph *fg),
@@ -61,7 +61,7 @@ evas_common_draw_context_font_ext_set(RGBA_Draw_Context *dc,
61 dc->font_ext.func.gl_draw = gl_draw; 61 dc->font_ext.func.gl_draw = gl_draw;
62} 62}
63 63
64void 64EAPI void
65evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h) 65evas_common_draw_context_clip_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
66{ 66{
67 if (dc->clip.use) 67 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
73 evas_common_draw_context_set_clip(dc, x, y, w, h); 73 evas_common_draw_context_set_clip(dc, x, y, w, h);
74} 74}
75 75
76void 76EAPI void
77evas_common_draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h) 77evas_common_draw_context_set_clip(RGBA_Draw_Context *dc, int x, int y, int w, int h)
78{ 78{
79 dc->clip.use = 1; 79 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
83 dc->clip.h = h; 83 dc->clip.h = h;
84} 84}
85 85
86void 86EAPI void
87evas_common_draw_context_unset_clip(RGBA_Draw_Context *dc) 87evas_common_draw_context_unset_clip(RGBA_Draw_Context *dc)
88{ 88{
89 dc->clip.use = 0; 89 dc->clip.use = 0;
90} 90}
91 91
92void 92EAPI void
93evas_common_draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a) 93evas_common_draw_context_set_color(RGBA_Draw_Context *dc, int r, int g, int b, int a)
94{ 94{
95 R_VAL(&(dc->col.col)) = (DATA8)r; 95 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
98 A_VAL(&(dc->col.col)) = (DATA8)a; 98 A_VAL(&(dc->col.col)) = (DATA8)a;
99} 99}
100 100
101void 101EAPI void
102evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a) 102evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int b, int a)
103{ 103{
104 dc->mul.use = 1; 104 dc->mul.use = 1;
@@ -108,13 +108,13 @@ evas_common_draw_context_set_multiplier(RGBA_Draw_Context *dc, int r, int g, int
108 A_VAL(&(dc->mul.col)) = (DATA8)a; 108 A_VAL(&(dc->mul.col)) = (DATA8)a;
109} 109}
110 110
111void 111EAPI void
112evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc) 112evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
113{ 113{
114 dc->mul.use = 0; 114 dc->mul.use = 0;
115} 115}
116 116
117void 117EAPI void
118evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 118evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
119{ 119{
120 Cutout_Rect *r; 120 Cutout_Rect *r;
@@ -127,14 +127,14 @@ evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w,
127 dc->cutout.rects = evas_object_list_append(dc->cutout.rects, r); 127 dc->cutout.rects = evas_object_list_append(dc->cutout.rects, r);
128} 128}
129 129
130void 130EAPI void
131evas_common_draw_context_clear_cutouts(RGBA_Draw_Context *dc) 131evas_common_draw_context_clear_cutouts(RGBA_Draw_Context *dc)
132{ 132{
133 evas_common_draw_context_apply_free_cutouts(dc->cutout.rects); 133 evas_common_draw_context_apply_free_cutouts(dc->cutout.rects);
134 dc->cutout.rects = NULL; 134 dc->cutout.rects = NULL;
135} 135}
136 136
137Cutout_Rect * 137EAPI Cutout_Rect *
138evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc) 138evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
139{ 139{
140 Cutout_Rect *r, *rects; 140 Cutout_Rect *r, *rects;
@@ -156,7 +156,7 @@ evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
156 return rects; 156 return rects;
157} 157}
158 158
159void 159EAPI void
160evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects) 160evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
161{ 161{
162 while (rects) 162 while (rects)
@@ -169,7 +169,7 @@ evas_common_draw_context_apply_free_cutouts(Cutout_Rect *rects)
169 } 169 }
170} 170}
171 171
172Cutout_Rect * 172EAPI Cutout_Rect *
173evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split) 173evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
174{ 174{
175 /* multiple rect in, multiple out */ 175 /* multiple rect in, multiple out */
@@ -196,7 +196,7 @@ evas_common_draw_context_cutouts_split(Cutout_Rect *in, Cutout_Rect *split)
196 return out; 196 return out;
197} 197}
198 198
199Cutout_Rect * 199EAPI Cutout_Rect *
200evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split) 200evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
201{ 201{
202 /* 1 input rect, multiple out */ 202 /* 1 input rect, multiple out */
@@ -501,7 +501,7 @@ evas_common_draw_context_cutout_split(Cutout_Rect *in, Cutout_Rect *split)
501#undef R_NEW 501#undef R_NEW
502} 502}
503 503
504Cutout_Rect * 504EAPI Cutout_Rect *
505evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge) 505evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge)
506{ 506{
507 /* 1 input rect, multiple out */ 507 /* 1 input rect, multiple out */
@@ -529,19 +529,19 @@ evas_common_draw_context_cutout_merge(Cutout_Rect *in, Cutout_Rect *merge)
529 return out; 529 return out;
530} 530}
531 531
532void 532EAPI void
533evas_common_draw_context_set_anti_alias(RGBA_Draw_Context *dc , unsigned char aa) 533evas_common_draw_context_set_anti_alias(RGBA_Draw_Context *dc , unsigned char aa)
534{ 534{
535 dc->anti_alias = !!aa; 535 dc->anti_alias = !!aa;
536} 536}
537 537
538void 538EAPI void
539evas_common_draw_context_set_color_interpolation(RGBA_Draw_Context *dc, int color_space) 539evas_common_draw_context_set_color_interpolation(RGBA_Draw_Context *dc, int color_space)
540{ 540{
541 dc->interpolation.color_space = color_space; 541 dc->interpolation.color_space = color_space;
542} 542}
543 543
544void 544EAPI void
545evas_common_draw_context_set_render_op(RGBA_Draw_Context *dc , int op) 545evas_common_draw_context_set_render_op(RGBA_Draw_Context *dc , int op)
546{ 546{
547 dc->render_op = op; 547 dc->render_op = op;