summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_image.eo
blob: 9586c893ff5a8d48def46fa23b743d9350164b59 (plain) (blame)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
interface Efl.Image {
   legacy_prefix: null;
   properties {
      animated {
         get {
            /*@
              Check if an image  can be animated (have multiple frames)

              @return whether the image support animation
             */
         }
         values {
              bool is_animated; /*@ If it's animated or not. */
         }
      }
      load_size {
         set {
            /*@
              Set the loading size of an image. The image will be loaded into memory as if it was
              the set size instead of the original size. This can save a lot of memory, and is
              important for scalable types like svg.
            */
         }
         get {
         }
         values {
            int w; /*@ The new width of the image's load size. */
            int h; /*@ The new height of the image's load size. */
         }
      }
      smooth_scale {
         set {
            /*@
            Sets whether to use high-quality image scaling algorithm on the
            given image.

            When enabled, a higher quality image scaling algorithm is used when
            scaling images to sizes other than the source image's original
            one. This gives better results but is more computationally
            expensive.
            */
         }
         get {
            /*@
            Retrieves whether the given image is using high-quality
            image scaling algorithm.

            @return Whether smooth scale is being used.
            */
         }
         values {
            bool smooth_scale; /*@ Whether to use smooth scale or not. */
         }
      }
      ratio {
         get {
            /*@
              The native ration of the image object
            */
         }
         values {
            double ratio; /*@ The image's ratio */
         }
      }
   }
}