summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_screen.eo
blob: 1050acf36eb6a62ef64921f10b0348517b2d1f13 (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
import eina_types;

interface Efl.Screen {
   methods {
      @property screen_size {
         get {
            [[Get screen geometry details for the screen that a window is on.]]
         }
         values {
            w: int; [[Where to return the width value. May be $null.]]
            h: int; [[Where to return the height value. May be $null.]]
         }
      }
      @property screen_rotation {
         get {
            [[Get the rotation of the screen.

              Most engines only return multiples of 90.
              @since 1.19
            ]]
         }
         values {
            rotation: int; [[The degree of the screen.]]
         }
      }
      @property screen_dpi {
         get {
            [[Get screen dpi for the screen that a window is on.

              @since 1.7
            ]]
         }
         values {
            xdpi: int; [[Pointer to value to store return horizontal dpi. May be $null.]]
            ydpi: int; [[Pointer to value to store return vertical dpi. May be $null.]]
         }
      }
   }
}