aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/efl_input_key.eo
blob: 2255cf5ae6a63285cf674a832a798f6667dbbcb7 (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
class Efl.Input.Key (Efl.Object, Efl.Input.Event, Efl.Input.State, Efl.Input.Event)
{
   [[Represents a single key event from a keyboard or similar device.

     @since 1.18
   ]]
   methods {
      @property pressed {
         [[$true if the key is down, $false if it is released.]]
         values {
            val: bool; [[$true if the key is pressed, $false otherwise]]
         }
      }
      @property key_name {
         [[Name string of the key.]]
         values {
            val: string; [[Key name]]
         }
      }
      @property key {
         [[Logical key.

           Eg. Shift + 1 = exclamation
         ]]
         values {
            val: string; [[Logical key name]]
         }
      }
      @property string {
         [[A UTF8 string if this keystroke has produced a visible string to be
           added.
         ]]
         values {
            val: string; [[Visible string from key press in UTF8]]
         }
      }
      @property compose {
         [[A UTF8 string if this keystroke has modified a string in the middle
           of being composed.

           Note: This string replaces the previous one
         ]]
         values {
            val: string; [[Composed key string in UTF8]]
         }
      }
      @property key_code {
         [[Key scan code numeric value.]]
         values {
            val: int; [[Key scan code]]
         }
      }
   }
   implements {
      class.destructor;
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Input.Event.reset;
      Efl.Input.Event.dup;
      Efl.Input.Event.timestamp { get; set; }
      Efl.Input.Event.fake { get; }
      Efl.Input.Event.event_flags { get; set; }
      Efl.Input.Event.device { get; set; }
      Efl.Input.State.modifier_enabled { get; }
      Efl.Input.State.lock_enabled { get; }
   }
}