aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-24 10:52:40 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-24 11:04:28 +0900
commitf34305a7d61ae76a70e343194a586998be23ce39 (patch)
tree90eac7844b902d98f647bdfd724b651e85cce229 /doc
parentEmotion generic: change the log domain name to be consistent with others doma... (diff)
downloadefl-f34305a7d61ae76a70e343194a586998be23ce39.tar.gz
Doc: Use transparent images for Doxygen
Set the proper transparent & alpha flags on the Ecore_Evas, add a tranparent rectangle and boom, the images are all nice and transparent. This will fix the bg color in the page evasfiltersref.
Diffstat (limited to 'doc')
-rw-r--r--doc/previews/preview_text_filter.c23
1 files changed, 15 insertions, 8 deletions
diff --git a/doc/previews/preview_text_filter.c b/doc/previews/preview_text_filter.c
index 86f93be85c..a759faf72d 100644
--- a/doc/previews/preview_text_filter.c
+++ b/doc/previews/preview_text_filter.c
@@ -64,8 +64,8 @@ main(int argc, char **argv)
const char *font = "Sans";
const char *filter, *text;
int fontsize = 32;
- Evas_Object *o;
- char *whole_filter;
+ Evas_Object *o, *rect;
+ Evas *e;
int w, h;
if (argc < 4)
@@ -90,8 +90,18 @@ main(int argc, char **argv)
ecore_evas_show(wpd.ee);
ecore_evas_manual_render_set(wpd.ee, EINA_TRUE);
-
- o = evas_object_text_add(ecore_evas_get(wpd.ee));
+ ecore_evas_transparent_set(wpd.ee, EINA_TRUE);
+ ecore_evas_alpha_set(wpd.ee, EINA_TRUE);
+ e = ecore_evas_get(wpd.ee);
+
+ rect = evas_object_rectangle_add(e);
+ evas_object_move(rect, 0, 0);
+ evas_object_resize(rect, w, h);
+ evas_object_color_set(rect, 0, 0, 0, 0);
+ evas_object_show(rect);
+
+ o = evas_object_text_add(e);
+ evas_object_stack_above(o, rect);
evas_object_move(o, 0, 0);
evas_object_resize(o, w, h);
evas_object_text_font_set(o, font, fontsize);
@@ -99,10 +109,7 @@ main(int argc, char **argv)
evas_object_color_set(o, 255, 255, 255, 255);
evas_object_show(o);
- if (asprintf(&whole_filter, "fill(color = #404040); %s", filter) == -1)
- return 2;
- eo_do(o, evas_obj_text_filter_program_set(whole_filter));
- free(whole_filter);
+ eo_do(o, evas_obj_text_filter_program_set(filter));
ecore_evas_manual_render(wpd.ee);
evas_object_geometry_get(o, NULL, NULL, &w, &h);