summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_blur.eo
blob: c69e7871fbe11ccfb0269dff4b5afcc9a00da7f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
interface Efl.Gfx.Blur
{
   [[A simple API to apply blur effects.

     Those API's might use @Efl.Gfx.Filter internally. It might be necessary to
     also specify the color of the blur with @Efl.Gfx.Color.color.
   ]]
   methods {
      @property radius {
         [[The blur radius in pixels.]]
         values {
            rx: double; [[The horizontal blur radius.]]
            ry: double; [[The vertical blur radius.]]
         }
      }
      @property offset {
         [[An offset relative to the original pixels.

           This property allows for drop shadow effects.
         ]]
         values {
            ox: double; [[Horizontal offset in pixels.]]
            oy: double; [[Vertical offset in pixels.]]
         }
      }
      @property grow {
         [[How much the original image should be "grown" before blurring.

           Growing is a combination of blur & color levels adjustment. If the
           value of grow is positive, the pixels will appear more "fat" or "bold"
           than the original. If the value is negative, a shrink effect happens
           instead.

           This is can be used efficiently to create glow effects.
         ]]
         values {
            radius: double; [[How much to grow the original pixel data.]]
         }
      }
   }
}