Flutter Linux Embedder
fl_pointer_manager.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_POINTER_MANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_POINTER_MANAGER_H_
7 
8 #include "flutter/shell/platform/embedder/embedder.h"
10 
11 G_BEGIN_DECLS
12 
13 G_DECLARE_FINAL_TYPE(FlPointerManager,
14  fl_pointer_manager,
15  FL,
16  POINTER_MANAGER,
17  GObject);
18 
19 /**
20  * fl_pointer_manager_new:
21  * @view_id: view ID to report events for.
22  * @engine: an #FlEngine.
23  *
24  * Create a new #FlPointerManager.
25  *
26  * Returns: a new #FlPointerManager.
27  */
28 FlPointerManager* fl_pointer_manager_new(FlutterViewId view_id,
29  FlEngine* engine);
30 
31 /**
32  * fl_pointer_manager_handle_button_press:
33  * @manager: an #FlPointerManager.
34  * @event_time: event time in milliseconds.
35  * @device_kind: kind of device generating the event.
36  * @x: x co-ordinate of event.
37  * @y: y co-ordinate of event.
38  * @button: button being pressed.
39  *
40  * Returns %TRUE if this event was handled.
41  */
43  FlPointerManager* manager,
44  guint event_time,
45  FlutterPointerDeviceKind device_kind,
46  gdouble x,
47  gdouble y,
48  int64_t button);
49 
50 /**
51  * fl_pointer_manager_handle_button_release:
52  * @manager: an #FlPointerManager.
53  * @event_time: event time in milliseconds.
54  * @device_kind: kind of device generating the event.
55  * @x: x co-ordinate of event.
56  * @y: y co-ordinate of event.
57  * @button: button being released.
58  *
59  * Returns %TRUE if this event was handled.
60  */
62  FlPointerManager* manager,
63  guint event_time,
64  FlutterPointerDeviceKind device_kind,
65  gdouble x,
66  gdouble y,
67  int64_t button);
68 
69 /**
70  * fl_pointer_manager_handle_motion:
71  * @manager: an #FlPointerManager.
72  * @event_time: event time in milliseconds.
73  * @device_kind: kind of device generating the event.
74  * @x: x co-ordinate of event.
75  * @y: y co-ordinate of event.
76  *
77  * Returns %TRUE if this event was handled.
78  */
79 gboolean fl_pointer_manager_handle_motion(FlPointerManager* manager,
80  guint event_time,
81  FlutterPointerDeviceKind device_kind,
82  gdouble x,
83  gdouble y);
84 
85 /**
86  * fl_pointer_manager_handle_enter:
87  * @manager: an #FlPointerManager.
88  * @event_time: event time in milliseconds.
89  * @device_kind: kind of device generating the event.
90  * @x: x co-ordinate of event.
91  * @y: y co-ordinate of event.
92  *
93  * Returns %TRUE if this event was handled.
94  */
95 gboolean fl_pointer_manager_handle_enter(FlPointerManager* manager,
96  guint event_time,
97  FlutterPointerDeviceKind device_kind,
98  gdouble x,
99  gdouble y);
100 
101 /**
102  * fl_pointer_manager_handle_leave:
103  * @manager: an #FlPointerManager.
104  * @event_time: event time in milliseconds.
105  * @device_kind: kind of device generating the event.
106  * @x: x co-ordinate of event.
107  * @y: y co-ordinate of event.
108  *
109  * Returns %TRUE if this event was handled.
110  */
111 gboolean fl_pointer_manager_handle_leave(FlPointerManager* manager,
112  guint event_time,
113  FlutterPointerDeviceKind device_kind,
114  gdouble x,
115  gdouble y);
116 G_END_DECLS
117 
118 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_POINTER_MANAGER_H_
fl_pointer_manager_handle_leave
gboolean fl_pointer_manager_handle_leave(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
Definition: fl_pointer_manager.cc:179
fl_pointer_manager_new
FlPointerManager * fl_pointer_manager_new(FlutterViewId view_id, FlEngine *engine)
Definition: fl_pointer_manager.cc:65
fl_pointer_manager_handle_button_press
gboolean fl_pointer_manager_handle_button_press(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, int64_t button)
Definition: fl_pointer_manager.cc:76
FL
FL
Definition: fl_binary_messenger.cc:27
fl_pointer_manager_handle_button_release
gboolean fl_pointer_manager_handle_button_release(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, int64_t button)
Definition: fl_pointer_manager.cc:109
fl_engine.h
fl_pointer_manager_handle_enter
gboolean fl_pointer_manager_handle_enter(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
Definition: fl_pointer_manager.cc:162
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlPointerManager, fl_pointer_manager, FL, POINTER_MANAGER, GObject)
fl_pointer_manager_handle_motion
gboolean fl_pointer_manager_handle_motion(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
Definition: fl_pointer_manager.cc:140