summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_orientation.eo
blob: fb5f1d8056b0152d617b3c5349d97e0a9e532fa0 (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
import efl_ui_direction; // For documentation references

enum Efl.Orient
{
   [[An orientation type, to rotate visual objects.

     Not to be confused with @Efl.Ui.Dir which is meant for widgets, rather
     than images and canvases. This enum is used to rotate images, videos and
     the like.

     See also @Efl.Orientation.
   ]]
   none = 0,   [[Default, same as up]]
   up = 0,     [[Orient up, do not rotate.]]
   right = 90, [[Orient right, rotate 90 degrees counter clock-wise.]]
   down = 180, [[Orient down, rotate 180 degrees.]]
   left = 270, [[Orient left, rotate 90 degrees clock-wise.]]
   vertical = 0, [[Orient vertical]]
   horizontal = 90 [[Orient horizontal]]
}

interface Efl.Orientation
{
   [[Efl orientation interface]]
   methods {
       @property orientation {
         [[Control the orientation of a given object.

           This can be used to set the rotation on an image or a window, for
           instance.
         ]]
         values {
            dir: Efl.Orient(none); [[The rotation angle (CCW), see @Efl.Orient.]]
         }
      }
   }
}