Flutter Engine Uber Docs
Docs for the entire Flutter Engine repo.
 
Loading...
Searching...
No Matches
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
10
11G_BEGIN_DECLS
12
13G_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 */
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 * @gdk_button: button being pressed.
39 * @rotation: rotation of the pointer device in degrees.
40 * @pressure: pressure of the pointer device.
41 *
42 * Returns %TRUE if this event was handled.
43 */
45 FlPointerManager* manager,
46 guint event_time,
47 FlutterPointerDeviceKind device_kind,
48 gdouble x,
49 gdouble y,
50 guint gdk_button,
51 gdouble rotation,
52 gdouble pressure);
53
54/**
55 * fl_pointer_manager_handle_button_release:
56 * @manager: an #FlPointerManager.
57 * @event_time: event time in milliseconds.
58 * @device_kind: kind of device generating the event.
59 * @x: x co-ordinate of event.
60 * @y: y co-ordinate of event.
61 * @gdk_button: button being released.
62 * @rotation: rotation of the pointer device in degrees.
63 * @pressure: pressure of the pointer device.
64 *
65 * Returns %TRUE if this event was handled.
66 */
68 FlPointerManager* manager,
69 guint event_time,
70 FlutterPointerDeviceKind device_kind,
71 gdouble x,
72 gdouble y,
73 guint gdk_button,
74 gdouble rotation,
75 gdouble pressure);
76
77/**
78 * fl_pointer_manager_handle_motion:
79 * @manager: an #FlPointerManager.
80 * @event_time: event time in milliseconds.
81 * @device_kind: kind of device generating the event.
82 * @x: x co-ordinate of event.
83 * @y: y co-ordinate of event.
84 * @rotation: rotation of the pointer device in degrees.
85 * @pressure: pressure of the pointer device.
86 *
87 * Returns %TRUE if this event was handled.
88 */
89gboolean fl_pointer_manager_handle_motion(FlPointerManager* manager,
90 guint event_time,
91 FlutterPointerDeviceKind device_kind,
92 gdouble x,
93 gdouble y,
94 gdouble rotation,
95 gdouble pressure);
96
97/**
98 * fl_pointer_manager_handle_enter:
99 * @manager: an #FlPointerManager.
100 * @event_time: event time in milliseconds.
101 * @device_kind: kind of device generating the event.
102 * @x: x co-ordinate of event.
103 * @y: y co-ordinate of event.
104 * @rotation: rotation of the pointer device in degrees.
105 * @pressure: pressure of the pointer device.
106 *
107 * Returns %TRUE if this event was handled.
108 */
109gboolean fl_pointer_manager_handle_enter(FlPointerManager* manager,
110 guint event_time,
111 FlutterPointerDeviceKind device_kind,
112 gdouble x,
113 gdouble y,
114 gdouble rotation,
115 gdouble pressure);
116
117/**
118 * fl_pointer_manager_handle_leave:
119 * @manager: an #FlPointerManager.
120 * @event_time: event time in milliseconds.
121 * @device_kind: kind of device generating the event.
122 * @x: x co-ordinate of event.
123 * @y: y co-ordinate of event.
124 * @rotation: rotation of the pointer device in degrees.
125 * @pressure: pressure of the pointer device.
126 *
127 * Returns %TRUE if this event was handled.
128 */
129gboolean fl_pointer_manager_handle_leave(FlPointerManager* manager,
130 guint event_time,
131 FlutterPointerDeviceKind device_kind,
132 gdouble x,
133 gdouble y,
134 gdouble rotation,
135 gdouble pressure);
136G_END_DECLS
137
138#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_POINTER_MANAGER_H_
int32_t x
int64_t FlutterViewId
Definition embedder.h:393
FlutterPointerDeviceKind
The device type that created a pointer event.
Definition embedder.h:1309
FlutterEngine engine
Definition main.cc:84
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlPointerManager, fl_pointer_manager, FL, POINTER_MANAGER, GObject)
FlPointerManager * fl_pointer_manager_new(FlutterViewId view_id, FlEngine *engine)
gboolean fl_pointer_manager_handle_button_release(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button, gdouble rotation, gdouble pressure)
gboolean fl_pointer_manager_handle_motion(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure)
gboolean fl_pointer_manager_handle_enter(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure)
gboolean fl_pointer_manager_handle_leave(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure)
gboolean fl_pointer_manager_handle_button_press(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button, gdouble rotation, gdouble pressure)
G_BEGIN_DECLS FlutterViewId view_id
double y