aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/efl_input_state.eo
blob: bc235158ded93bcb07a89b169bfba81a6f895a54 (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
import efl_input_types;

interface Efl.Input.State
{
   [[Efl input state interface.

     @since 1.22
   ]]
   c_prefix: efl_input;
   methods {
      /* FIXME Efl.Input.Device is not stable yet*/
      @property modifier_enabled @beta {
         [[Indicates whether a key modifier is on, such as Ctrl, Shift, ...]]
         get {}
         keys {
            mod: Efl.Input.Modifier; [[The modifier key to test.]]
            seat: const(Efl.Input.Device) @optional; [[The seat device, may be $null]]
         }
         values {
            is_set: bool; [[$true if the key modifier is pressed.]]
         }
      }
      /* FIXME Efl.Input.Device is not stable yet*/
      @property lock_enabled @beta {
         [[Indicates whether a key lock is on, such as NumLock, CapsLock, ...]]
         get {}
         keys {
            lock: Efl.Input.Lock; [[The lock key to test.]]
            seat: const(Efl.Input.Device) @optional; [[The seat device, may be $null]]
         }
         values {
            is_set: bool; [[$true if the key lock is on.]]
         }
      }
   }
}