Flutter Engine
 
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 *
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 guint gdk_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 * @gdk_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 guint gdk_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 */
79gboolean 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 */
95gboolean 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 */
111gboolean fl_pointer_manager_handle_leave(FlPointerManager* manager,
112 guint event_time,
113 FlutterPointerDeviceKind device_kind,
114 gdouble x,
115 gdouble y);
116G_END_DECLS
117
118#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_POINTER_MANAGER_H_
int32_t x
int64_t FlutterViewId
Definition embedder.h:386
FlutterPointerDeviceKind
The device type that created a pointer event.
Definition embedder.h:1279
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_press(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button)
gboolean fl_pointer_manager_handle_button_release(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button)
gboolean fl_pointer_manager_handle_motion(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
gboolean fl_pointer_manager_handle_leave(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
gboolean fl_pointer_manager_handle_enter(FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y)
G_BEGIN_DECLS FlutterViewId view_id
double y