summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_input_event.eo
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-08-25 19:20:10 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-08-26 10:18:01 +0900
commitd504284dd241d2d1713e9e94f7e6efee8e0ee9ac (patch)
tree484135bc4391f81cd3d243051732fb23e5d992de /src/lib/evas/canvas/efl_input_event.eo
parent60526528a6cc85050a74d5d45f6502ea5c07d70f (diff)
efl: Rename Efl.Event.XX to Efl.Input.XX
This removes: Efl.Event interface And renames: Efl.Event.Input -> Efl.Input.Event Efl.Event -> Efl.Input.Event (merged) Efl.Event.Pointer -> Efl.Input.Pointer Efl.Event.Key -> Efl.Input.Key Efl.Event.Hold -> Efl.Input.Hold This also moves some interfaces from efl/ to evas/ where they belong better. This allows renaming Eo_Event to Efl_Event.
Diffstat (limited to 'src/lib/evas/canvas/efl_input_event.eo')
-rw-r--r--src/lib/evas/canvas/efl_input_event.eo76
1 files changed, 76 insertions, 0 deletions
diff --git a/src/lib/evas/canvas/efl_input_event.eo b/src/lib/evas/canvas/efl_input_event.eo
new file mode 100644
index 0000000000..9bc90e7fa6
--- /dev/null
+++ b/src/lib/evas/canvas/efl_input_event.eo
@@ -0,0 +1,76 @@
1import efl_input_types;
2
3mixin Efl.Input.Event
4{
5 [[Represents a generic event data.
6
7 Note: Most Efl Events do not carry Efl Objects, rather simple data
8 structures. This class is intended to carry more complex event
9 data, such as pointer events.
10
11 @since 1.19
12 ]]
13 eo_prefix: efl_input;
14 data: null;
15 methods {
16 @property timestamp @virtual_pure {
17 [[The time at which an event was generated.
18
19 If the event is generated by a server (eg. X.org or Wayland), then
20 the time may be set by the server. Usually this time will be based
21 on the monotonic clock, if available, but this class can not
22 guarantee it.
23 ]]
24 set { [[Call this when generating events manually.]] }
25 get {}
26 values {
27 ms: double; [[Time in milliseconds when the event happened.]]
28 }
29 }
30 reset @virtual_pure {
31 [[Resets the internal data to 0 or default values.]]
32 }
33 dup @virtual_pure {
34 [[Creates a copy of this event.]]
35 return: own(Efl.Input.Event);
36 }
37 @property device @virtual_pure {
38 [[Input device that originated this event.]]
39 values {
40 dev: Efl.Input.Device;
41 }
42 }
43 @property event_flags @virtual_pure {
44 [[Extra flags for this event, may be changed by the user.]]
45 values {
46 flags: Efl.Input.Flags;
47 }
48 }
49 @property processed {
50 [[$true if @.event_flags indicates the event is on hold.]]
51 values {
52 val: bool;
53 }
54 }
55 @property scrolling {
56 [[$true if @.event_flags indicates the event happened while scrolling.]]
57 values {
58 val: bool;
59 }
60 }
61 @property fake {
62 [[$true if the event was fake, not triggered by real hardware.]]
63 get {}
64 values {
65 val: bool;
66 }
67 }
68 instance_get @class @protected @virtual_pure {
69 params {
70 @in owner: Efl.Object;
71 @out priv: void*;
72 }
73 return: own(Efl.Input.Event);
74 }
75 }
76}