summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_gfx_view.eo
blob: c172faecfe0ee3c8fefbf153894630adac5223ce (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
interface Efl.Gfx.View {
   eo_prefix: efl_gfx;
   methods {
      @property view_size {
         [[The dimensions of this object's viewport.

           This property represents the size of an image (file on disk,
           vector graphics, GL or 3D scene, ...) view: this is the logical
           size of a view, not the number of pixels in the buffer, nor its
           visible size on the window.

           For scalable scenes (vector graphics, 3D or GL), this means scaling
           the contents of the scene and drawing more pixels as a result; For
           pixmaps this means zooming and stretching up or down the backing
           buffer to fit this view.

           In most cases the view should have the same dimensions as the
           object on the canvas, for best quality.

           @.view_size.set may not be implemented. If it is, it might trigger
           a complete recalculation of the scene, or reload of the pixel data.

           Refer to each implementing class specific documentation for more
           details.
         ]]
         set {}
         get {}
         values {
            w: int; [[Width of the view.]]
            h: int; [[Height of the view.]]
         }
      }
   }
}