summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2014-02-13 17:26:33 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2014-02-13 17:37:33 +0900
commit511049e20da614bd14be2f57f8aa87315b97d69d (patch)
treea2d1276087f9642ea587293d85df9fe67e4178f8 /doc
parent9f1ae254db87e15797ea658d9e1f3cb6d9b11671 (diff)
Evas filters: Improve doc automatization
Include example filter codes from src/examples in Doxygen. Use these examples for the generation as well.
Diffstat (limited to 'doc')
-rw-r--r--doc/previews/Makefile.am7
-rw-r--r--doc/previews/filter_blend.sh6
-rw-r--r--doc/previews/filter_blur.sh5
-rw-r--r--doc/previews/filter_bump.sh5
-rw-r--r--doc/previews/filter_curve.sh6
-rw-r--r--doc/previews/filter_example_1.sh7
-rw-r--r--doc/previews/filter_grow.sh6
-rw-r--r--doc/previews/filter_mask.sh7
-rw-r--r--doc/previews/filter_transform.sh6
9 files changed, 7 insertions, 48 deletions
diff --git a/doc/previews/Makefile.am b/doc/previews/Makefile.am
index fbfdd29..dd25cc1 100644
--- a/doc/previews/Makefile.am
+++ b/doc/previews/Makefile.am
@@ -35,7 +35,12 @@ previews-data:
35 $(MKDIR_P) $(HTMLDIR) 35 $(MKDIR_P) $(HTMLDIR)
36 @for a in $(PREVIEWS) ; do \ 36 @for a in $(PREVIEWS) ; do \
37 echo " GEN filter_$${a}.png" ; \ 37 echo " GEN filter_$${a}.png" ; \
38 source ${top_srcdir}/doc/previews/filter_$${a}.sh ; \ 38 FONT="Sans" ; \
39 SIZE=24 ; \
40 FILTER=`cat ${top_srcdir}/src/examples/evas/filters/filter_$${a}.txt` ; \
41 if [ -e ${top_srcdir}/doc/previews/filter_$${a}.sh ] ; then \
42 source ${top_srcdir}/doc/previews/filter_$${a}.sh ; \
43 fi ; \
39 $(top_srcdir)/doc/previews/preview_text_filter "$${TEXT}" "$${FILTER}" "$(DATADIR)/filter_$${a}.png" "$${FONT}" "$${SIZE}" ; \ 44 $(top_srcdir)/doc/previews/preview_text_filter "$${TEXT}" "$${FILTER}" "$(DATADIR)/filter_$${a}.png" "$${FONT}" "$${SIZE}" ; \
40 cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \ 45 cp "$(DATADIR)/filter_$${a}.png" "$(HTMLDIR)/" ; \
41 done 46 done
diff --git a/doc/previews/filter_blend.sh b/doc/previews/filter_blend.sh
index eee0446..0d13cea 100644
--- a/doc/previews/filter_blend.sh
+++ b/doc/previews/filter_blend.sh
@@ -1,5 +1 @@
1TEXT="Blend" TEXT="Blend Example"
2FONT="Sans:style=bold"
3SIZE=32
4FILTER="blend (color = #3399FF);"
5
diff --git a/doc/previews/filter_blur.sh b/doc/previews/filter_blur.sh
index a844419..59de6f4 100644
--- a/doc/previews/filter_blur.sh
+++ b/doc/previews/filter_blur.sh
@@ -1,8 +1,3 @@
1TEXT="Blur" 1TEXT="Blur"
2FONT="Sans:style=bold" 2FONT="Sans:style=bold"
3SIZE=32 3SIZE=32
4FILTER="
5blur (10, color = black, oy = 5, ox = 5);
6blend ();
7"
8
diff --git a/doc/previews/filter_bump.sh b/doc/previews/filter_bump.sh
index 7fa8787..76862f1 100644
--- a/doc/previews/filter_bump.sh
+++ b/doc/previews/filter_bump.sh
@@ -1,8 +1,3 @@
1TEXT="Bump" 1TEXT="Bump"
2FONT="Sans:style=bold" 2FONT="Sans:style=bold"
3SIZE=64 3SIZE=64
4FILTER="
5buffer : a (alpha);
6blur (5, dst = a);
7bump (map = a, compensate = yes, color = cyan, specular = 10.0);
8"
diff --git a/doc/previews/filter_curve.sh b/doc/previews/filter_curve.sh
index 96e3f11..852e165 100644
--- a/doc/previews/filter_curve.sh
+++ b/doc/previews/filter_curve.sh
@@ -1,9 +1,3 @@
1TEXT="Curve" 1TEXT="Curve"
2FONT="Sans:style=bold" 2FONT="Sans:style=bold"
3SIZE=64 3SIZE=64
4FILTER="
5buffer : a (alpha);
6blur (4, dst = a);
7curve (0:0 - 20:0 - 60:255 - 160:255 - 200:0 - 255:0, src = a, dst = a);
8blend(src = a, color = black);
9"
diff --git a/doc/previews/filter_example_1.sh b/doc/previews/filter_example_1.sh
index 0098a6b..dfe587c 100644
--- a/doc/previews/filter_example_1.sh
+++ b/doc/previews/filter_example_1.sh
@@ -1,10 +1,3 @@
1TEXT="Evas Filters" 1TEXT="Evas Filters"
2FONT="Sans" 2FONT="Sans"
3SIZE=50 3SIZE=50
4FILTER="
5buffer : fat (alpha);
6grow (8, dst = fat);
7blur (12, src = fat, color = darkblue);
8blur (4, color = cyan);
9blend ();
10"
diff --git a/doc/previews/filter_grow.sh b/doc/previews/filter_grow.sh
index b675ab1..7a0b832 100644
--- a/doc/previews/filter_grow.sh
+++ b/doc/previews/filter_grow.sh
@@ -1,9 +1,3 @@
1TEXT="Grow - Contour" 1TEXT="Grow - Contour"
2FONT="Sans:style=bold" 2FONT="Sans:style=bold"
3SIZE=32 3SIZE=32
4FILTER="
5buffer : fat (alpha);
6grow (4, dst = fat);
7blend (src = fat, color = black);
8blend (color = white);
9"
diff --git a/doc/previews/filter_mask.sh b/doc/previews/filter_mask.sh
index ab22e55..706903e 100644
--- a/doc/previews/filter_mask.sh
+++ b/doc/previews/filter_mask.sh
@@ -1,10 +1,3 @@
1TEXT="Mask" 1TEXT="Mask"
2FONT="Sans:style=bold" 2FONT="Sans:style=bold"
3SIZE=64 3SIZE=64
4FILTER="
5buffer: a (alpha);
6blur(5, dst = a);
7curve(points = 0:255 - 128:255 - 255:0, src = a, dst = a);
8blend(color = black);
9mask(mask = a, color = cyan);
10"
diff --git a/doc/previews/filter_transform.sh b/doc/previews/filter_transform.sh
index 6acd845..7d9f3c4 100644
--- a/doc/previews/filter_transform.sh
+++ b/doc/previews/filter_transform.sh
@@ -1,9 +1,3 @@
1TEXT="Transform - Mirror effect" 1TEXT="Transform - Mirror effect"
2FONT="Sans" 2FONT="Sans"
3SIZE=50 3SIZE=50
4FILTER="
5buffer : t (alpha);
6transform (oy = 20, dst = t);
7blend (src = t, color = silver);
8blend (color = white);
9"