summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_fill.eo
blob: 8260a7b60b171d060477c46489c950b1e8132277 (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
42
43
44
45
46
47
interface Efl.Gfx.Fill {
   methods {
      @property fill_auto {
         [[Binds the object's @.fill property to its actual geometry.

           If $true, then every time the object is resized, it will
           automatically trigger a call to @Efl.Gfx.Fill.fill.set
           with the new size (and 0, 0 as source image's origin),
           so the image will cover the whole object's area.

           This property takes precedence over @.fill. If set to $false, then
           @.fill should be set.

           This flag is $true by default (used to be $false with the old APIs,
           and was known as "filled").
         ]]
         set {}
         get {}
         values {
            filled: bool; [[$true to make the fill property follow
                            object size or $false otherwise.]]
         }
      }
      @property fill {
         [[Specifies how to tile an image to fill its rectangle geometry.

           Note that if $w or $h are smaller than the dimensions of the object,
           the displayed image will be tiled around the object's area. To have
           only one copy of the bound image drawn, $x and $y must be 0 and
           $w and $h need to be the exact width and height of the image object
           itself, respectively.

           Setting this property will reset the @.fill_auto to $false.
         ]]
         set {}
         get {}
         values {
            x: int; [[The x coordinate (from the top left corner of the bound
                      image) to start drawing from.]]
            y: int; [[The y coordinate (from the top left corner of the bound
                      image) to start drawing from.]]
            w: int; [[The width the bound image will be displayed at.]]
            h: int; [[The height the bound image will be displayed at.]]
         }
      }
   }
}