| Flutter Linux Embedder |

fl_touch_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_TOUCH_MANAGER_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TOUCH_MANAGER_H_
7
8 #include <gdk/gdk.h>
9
10 #include "flutter/shell/platform/embedder/embedder.h"
11 #include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"
12
13 G_BEGIN_DECLS
14
15 G_DECLARE_FINAL_TYPE(FlTouchManager,
16 fl_touch_manager,
17 FL,
18 TOUCH_MANAGER,
19 GObject);
20
21 /**
22 * fl_touch_manager_new:
23 * @engine: an #FlEngine.
24 * @view_id: the view being managed.
25 *
26 * Create a new #FlTouchManager.
27 *
28 * Returns: a new #FlTouchManager.
29 */
30 FlTouchManager* fl_touch_manager_new(FlEngine* engine, FlutterViewId view_id);
31
32 /**
33 * fl_touch_manager_handle_touch_event:
34 * @manager: an #FlTouchManager.
35 * @event: the touch event.
36 * @scale_factor: the GTK scaling factor of the window.
37 */
38 void fl_touch_manager_handle_touch_event(FlTouchManager* manager,
39 GdkEventTouch* event,
40 gint scale_factor);
41
42 G_END_DECLS
43
44 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TOUCH_MANAGER_H_
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlTouchManager, fl_touch_manager, FL, TOUCH_MANAGER, GObject)
fl_touch_manager_new
FlTouchManager * fl_touch_manager_new(FlEngine *engine, FlutterViewId view_id)
Definition: fl_touch_manager.cc:48
fl_touch_manager_handle_touch_event
void fl_touch_manager_handle_touch_event(FlTouchManager *manager, GdkEventTouch *event, gint scale_factor)
Definition: fl_touch_manager.cc:131
FL
FL
Definition: fl_binary_messenger.cc:27
fl_engine.h