summaryrefslogtreecommitdiff
path: root/src/lib/efl/interfaces/efl_event.eo
blob: 9cc2bcb122a2aaed19575d5691cae95e695eb558 (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
type @extern Eo_Event_Description: __undefined_type;

interface Efl.Event
{
   [[Represents a generic event data.

     Note: Most Eo Events do not carry Eo objects, rather simple data
           structures. This class is intended to carry more complex event
           data, such as pointer events.

     @since 1.18
   ]]
   legacy_prefix: null;
   methods {
      @property timestamp {
         [[The time at which an event was generated.

           If the event is generated by a server (eg. X.org or Wayland), then
           the time may be set by the server. Usually this time will be based
           on the monotonic clock, if available, but this class can not
           guarantee it.
         ]]
         set { [[Call this when generating events manually.]] }
         get {}
         values {
            ms: double; [[Time in milliseconds when the event happened.]]
         }
      }
      @property event_type {
         [[The type of this event, as an Eo Event type.]]
         set {}
         get {}
         values {
            type: const(Eo_Event_Description)*;
         }
      }
      reset {
         [[Resets the internal data to 0 or default values.]]
      }
      dup {
         [[Creates a copy of this event.]]
         return: own(Efl.Event);
      }
   }
}