summaryrefslogtreecommitdiff
path: root/src/lib/ewe_entry.eo
blob: 2d62ff719546a85babd431a5fe2dd4a1dbef4d1a (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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
class Ewe_Entry (Elm_Entry)
{
   eo_prefix: ewe_obj_entry;
   data: Ewe_Entry_Data;
   properties {
      regex_glow {
         get {
            /*@
             Returns boolean to check if redex error-signals emition is on/off

             @return EINA_TRUE if signals glowing is on, otherwise, returns EINA_FALSE.

             @ingroup Entry */
         }
         values {
            Eina_Bool glow;
         }
      }
      regex_autocheck {
         get {
            /*@
             Returns boolean to check if redex autocheck is on/off

             @return EINA_TRUE if autocheck is on, otherwise, returns EINA_FALSE.

             @ingroup Entry */
         }
         values {
            Eina_Bool autocheck;
         }
      }
      regex_error {
         get {
            /*@
             Returns last regex error
             @return The last regex error.

             @ingroup Entry */
         }
         values {
            int error;
         }
      }
      regex_error_text {
         get {
            /*@
             Returns last regex error text
             @return The last regex error text.

             @ingroup Entry */
         }
         values {
            const(char) *error;
         }
      }
   }
   methods {
      regex_set {
         /*@
          Set regular expresion to be compiled and used.

          @return EINA_TRUE on success, otherwise returns EINA_FALSE.

          @ingroup Entry*/
         return: Eina_Bool;
         params {
            @in const(char) *regex_str; /*@The text of regular expresion*/
            @in int flags; /*@Compile flags for regex*/
         }
      }
      regex_unset {
         /*@
          Unset previoustly set regular expresion.

          @return EINA_TRUE on success, otherwise returns EINA_FALSE.

          @ingroup Entry*/
         return: Eina_Bool;
      }
      regex_check {
         /*@
          Check current text of Entry with previoustly set regular expresion.

          @return EINA_TRUE on success, otherwise returns EINA_FALSE.

          @ingroup Entry*/
         return: Eina_Bool;
      }
      regex_autocheck_set {
         /*@
          Set automatical regex check on "entry,changed".
          Signals will be processed only for focused entry.
          @return EINA_TRUE on success, otherwise returns EINA_FALSE.

          @ingroup Entry*/
         return: Eina_Bool;
         params {
            @in Eina_Bool autocheck; /*@Boolean to set autocheck on/off*/
         }
      }
      regex_glow_set {
         /*@
          Set if regex error signals for EDJE should be emitted.
          @return EINA_TRUE on success, otherwise returns EINA_FALSE.

          @ingroup Entry*/
         return: Eina_Bool;
         params {
            @in Eina_Bool glow; /*@Boolean to set signals emition on/off*/
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Eo.Base.destructor;
      Elm_Widget.theme_apply;
      Elm_Widget.disable;
   }
   events {
      focus,out;
   }
}