summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_selection.eo
blob: 87a70c592493ad100a569d834f3f8d4a59929644 (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
interface Efl.Text.Selection {
   methods {
      @property enable {
         [[Enable or disable selection feature.]]
         set {
         }
         get {
         }
         values {
            enable: bool; [[If $enable is true, the text selection is enabled.]]
         }
      }
      @property region {
         [[This selects a region of text within the object.
         set {
         }
         get {
         }
         values {
            start: int; [[The starting position.]]
            end: int; [[The end position.]]
         }
      }
      @property handler_disabled {
         [[This disabled the selection handlers.]]
         set {
         }
         get {
         }
         values {
            disabled: bool; [[If $true, the selection handlers are disabled.]]
         }
      }
      @property text {
         get {
            [[Get any selected text within the object.

              If there's any selected text in the object, this function returns it as
              a string in markup format. $null is returned if no selection exists or
              if an error occurred.

              The returned value points to an internal string and should not be freed
              or modified in any way. If the object is deleted or its
              contents are changed, the returned pointer should be considered invalid.
            ]]
         }
         values {
            text: const(char)*;
         }
      }
      all {
         [[This selects all text within the object.]]
      }
      none {
         [[This drops any existing text selection within the object.]]
      }
   }
}