summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_text_format.eo
blob: a23324ddaf95c9f62049f91991e1d6e26a58298b (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
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
87
88
89
90
enum Efl.Text.Format.Wrap {
     [[Wrap mode of the text (not in effect if not multiline)]]
        none,
     char,
     word,
     mixed,
     hyphenation
}

interface Efl.Text.Format {
   methods {
      @property format_ellipsis {
         [[Ellipsis value (number from -1.0 to 1.0)]]
         values
         {
            value: double;
         }
      }

      @property format_wrap {
         [[Wrap mode for use in the text]]
         values {
            wrap: Efl.Text.Format.Wrap;
         }
      }

      @property format_multiline {
         [[Multiline is enabled or not]]
         values {
            enabled: bool;
         }
      }

      @property format_halign {
         [[Horizontal alignment of text (number from 0.0 to 1.0)]]
         values
         {
            value: double;
         }
      }

      @property format_valign {
         [[Vertical alignment of text (number from -1.0 to 1.0)]]
         values
         {
            value: double;
         }
      }

      @property format_linegap {
         values
         {
            value: double;
         }
      }

      @property format_linerelgap {
         values
         {
            value: double;
         }
      }

      @property format_tabstops {
         values
         {
            value: int;
         }
      }

      @property format_password {
         [[Whether text is a password]]
         values
         {
            enabled: bool;
         }
      }

      @property format_replacement_char {
         [[The character used to replace characters that can not be displayed.

           Currently, only used to replace characters if @.format_password
           is enabled.
         ]]
         values {
            repch: string;
         }
      }
   }
}