summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_cursor.eo
blob: 82aca87888d61f2d5e1c910217102780c4ea7edb (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
enum Efl.Text.Cursor.Type
{
   under = 0,
   before
}

interface Efl.Text.Cursor {
   methods {
      @property type {
         [[Contols cursor type. It may change the cursor's geometry
           according to cursor type.
         ]]
         set {
         }
         get {
         }
         values {
            type: Efl.Text.Cursor.Type; [[The cursor's type]]
         }
      }
      @property position {
         set {
            [[Set the cursor pos.
            ]]
         }
         get {
            [[Return the current cursor pos.
            ]]
         }
         values {
            position: int; [[The cursor's position]]
         }
      }
      @property geometry {
         get {
            [[Returns the geometry of the cursor.
            ]]
         }
         values {
            x: int; [[Cursor X position]]
            y: int; [[Cursor Y position]]
            w: int; [[Cursor width]]
            h: int; [[Cursor height]]
         }
      }
      @property bidi {
         get {
            [[Returns the direction of the cursor.
            ]]
         }
         values {
            bidi: Efl.BiDi.Direction; [[the diretion of the cursor]]
         }
      }
      move_begin {
         [[Move the cursor to the beginning of text. 
         ]]
         return: bool; [[If the cursor is moved to the beginning of text, it returns true]]
      }
      move_end {
         [[Move the cursor to the end of text.
         ]]
         return: bool; [[If the cursor is moved to the end of text, it returns true]]
      }
      move_next {
         [[Move the cursor to the next position of text.
         ]]
         return: bool; [[If the cursor is moved to the next position of text, it returns true]]
      }
      move_prev {
         [[Move the cursor to the previous position of text.
         ]]
         return: bool; [[If the cursor is moved to the previous position of text, it returns true]]
      }
      move_up {
         [[Move the cursor to the above line of text. 
         ]]
         return: bool; [[If the cursor is moved to the above line of text, it returns true]]
      }
      move_down {
         [[Move the cursor to the below line of text.
         ]]
         return: bool; [[If the cursor is moved to the below line of text, it returns true]]]
      }
   }
}