summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 17:23:46 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2017-12-14 18:03:49 +0900
commit00bb3bd3c7781f76ca8010f44dc6998f6bbff89d (patch)
tree1306175e2c931739462f6e8a103e0162b6499996 /src/lib/efl/interfaces
parent88bfba1fdd35e3aadd4c3fde266cc48c2544db32 (diff)
efl: Add simple API for "blur" effects
This will use the Efl.Gfx.Filter interface internally, but makes it usable by normal people.
Diffstat (limited to 'src/lib/efl/interfaces')
-rw-r--r--src/lib/efl/interfaces/efl_gfx_blur.eo41
-rw-r--r--src/lib/efl/interfaces/efl_interfaces_main.c1
2 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/efl/interfaces/efl_gfx_blur.eo b/src/lib/efl/interfaces/efl_gfx_blur.eo
new file mode 100644
index 0000000000..7e35ee20e5
--- /dev/null
+++ b/src/lib/efl/interfaces/efl_gfx_blur.eo
@@ -0,0 +1,41 @@
1interface Efl.Gfx.Blur
2{
3 [[A simple API to apply blur effects.
4
5 Those API's might use @Efl.Gfx.Filter internally. It might be necessary to
6 also specify the color of the blur with @Efl.Gfx.color.
7 ]]
8 methods {
9 @property radius {
10 [[The blur radius in pixels.]]
11 values {
12 rx: double; [[The horizontal blur radius.]]
13 ry: double; [[The vertical blur radius.]]
14 }
15 }
16 @property offset {
17 [[An offset relative to the original pixels.
18
19 This property allows for drop shadow effects.
20 ]]
21 values {
22 ox: double; [[Horizontal offset in pixels.]]
23 oy: double; [[Vertical offset in pixels.]]
24 }
25 }
26 @property grow {
27 [[How much the original image should be "grown" before blurring.
28
29 Growing is a combination of blur & color levels adjustment. If the
30 value of grow is positive, the pixels will appear more "fat" or "bold"
31 than the original. If the value is negative, a shrink effect happens
32 instead.
33
34 This is can be used efficiently to create glow effects.
35 ]]
36 values {
37 radius: double; [[How much to grow the original pixel data.]]
38 }
39 }
40 }
41}
diff --git a/src/lib/efl/interfaces/efl_interfaces_main.c b/src/lib/efl/interfaces/efl_interfaces_main.c
index ea97773e27..3f19f054f8 100644
--- a/src/lib/efl/interfaces/efl_interfaces_main.c
+++ b/src/lib/efl/interfaces/efl_interfaces_main.c
@@ -38,6 +38,7 @@
38#include "interfaces/efl_gfx_gradient_radial.eo.c" 38#include "interfaces/efl_gfx_gradient_radial.eo.c"
39 39
40#include "interfaces/efl_gfx_filter.eo.c" 40#include "interfaces/efl_gfx_filter.eo.c"
41#include "interfaces/efl_gfx_blur.eo.c"
41 42
42#include "interfaces/efl_gfx_size_hint.eo.c" 43#include "interfaces/efl_gfx_size_hint.eo.c"
43#include "interfaces/efl_canvas.eo.c" 44#include "interfaces/efl_canvas.eo.c"