summaryrefslogtreecommitdiff
path: root/src/lib/ecore/ecore_event_message_handler.eo
blob: c2bc6b909f8fc9dd565afe0152a58e7d12cdd146 (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
class Ecore.Event.Message.Handler extends Efl.Loop_Message_Handler
{
   [[ For Legacy API usage Only
      This class is rather hacky/messy as it's really internal glue
      to handle legacy ecore events alongside the new loop message
      stuff merged together. This is ugly as it's internal only
      to quickly glue things together and is destined for death in
      EFL 2.0 or when we dump legacy.
   ]]
   methods {
      message_type_add {
         [[ ]]
         return: Ecore.Event.Message; [[ ]]
      }
      type_new {
         [[ ]]
         return: int; [[ ]]
      }
      handler_add {
         [[ Legacy list of callback handlers so they can return false ]]
         params {
            type: int;
            func: void_ptr;
            data: void_ptr;
         }
         return: void_ptr; [[ Lazy return handle ]]
      }
      handler_prepend {
         [[ Legacy list of callback handlers so they can return false ]]
         params {
            type: int;
            func: void_ptr;
            data: void_ptr;
         }
         return: void_ptr; [[ Lazy return handle ]]
      }
      handler_del {
         params {
            handler: void_ptr; [[ handler returned from handler_add() ]]
         }
         return: void_ptr; [[ handler data ptr ]]
      }
      handler_data_get {
         params {
            handler: void_ptr; [[ handler returned from handler_add() ]]
         }
         return: void_ptr; [[ handler data ptr ]]
      }
      handler_data_set {
         params {
            handler: void_ptr; [[ handler returned from handler_add() ]]
            data: void_ptr;
         }
         return: void_ptr; [[ prev handler data ptr ]]
      }
      filter_add {
         [[ Legacy event filter ]]
         params {
            func_start: void_ptr;
            func_filter: void_ptr;
            func_end: void_ptr;
            data: void_ptr;
         }
         return: void_ptr; [[ Lazy return filter handle ]]
      }
      filter_del {
         params {
            filter: void_ptr; [[ filter returned from filter_add() ]]
         }
         return: void_ptr; [[ filter data ptr ]]
      }
      current_type_get {
         return: int; [[ ]]
      }
      current_event_get {
         return: void_ptr; [[ ]]
      }
      type_flush {
         params {
            type: int; [[ the event type to flush ]]
         }
      }
   }
   events {
      message,ecore,event: Ecore.Event.Message; [[ Sample - override this ]]
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Loop_Message_Handler.message_call; [[ Sample - override this ]]
   }
}