| Flutter Linux Embedder |

fl_scrolling_view_delegate.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_SCROLLING_VIEW_DELEGATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_SCROLLING_VIEW_DELEGATE_H_
7
8 #include <gdk/gdk.h>
9 #include <cinttypes>
10 #include <memory>
11
12 #include "flutter/shell/platform/embedder/embedder.h"
13 #include "flutter/shell/platform/linux/fl_key_event.h"
14 #include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
15
16 G_BEGIN_DECLS
17
18 G_DECLARE_INTERFACE(FlScrollingViewDelegate,
19 fl_scrolling_view_delegate,
20 FL,
21 SCROLLING_VIEW_DELEGATE,
22 GObject);
23
24 /**
25 * FlScrollingViewDelegate:
26 *
27 * An interface for a class that provides `FlScrollingManager` with
28 * platform-related features.
29 *
30 * This interface is typically implemented by `FlView`.
31 */
32
33 struct _FlScrollingViewDelegateInterface {
34 GTypeInterface g_iface;
35
36 void (*send_mouse_pointer_event)(FlScrollingViewDelegate* delegate,
37 FlutterPointerPhase phase,
38 size_t timestamp,
39 double x,
40 double y,
41 double scroll_delta_x,
42 double scroll_delta_y,
43 int64_t buttons);
44
45 void (*send_pointer_pan_zoom_event)(FlScrollingViewDelegate* delegate,
46 size_t timestamp,
47 double x,
48 double y,
49 FlutterPointerPhase phase,
50 double pan_x,
51 double pan_y,
52 double scale,
53 double rotation);
54 };
55
56 void fl_scrolling_view_delegate_send_mouse_pointer_event(
57 FlScrollingViewDelegate* delegate,
58 FlutterPointerPhase phase,
59 size_t timestamp,
60 double x,
61 double y,
62 double scroll_delta_x,
63 double scroll_delta_y,
64 int64_t buttons);
65 void fl_scrolling_view_delegate_send_pointer_pan_zoom_event(
66 FlScrollingViewDelegate* delegate,
67 size_t timestamp,
68 double x,
69 double y,
70 FlutterPointerPhase phase,
71 double pan_x,
72 double pan_y,
73 double scale,
74 double rotation);
75
76 G_END_DECLS
77
78 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SCROLLING_VIEW_DELEGATE_H_
_FlScrollingViewDelegateInterface::send_mouse_pointer_event
void(* send_mouse_pointer_event)(FlScrollingViewDelegate *delegate, FlutterPointerPhase phase, size_t timestamp, double x, double y, double scroll_delta_x, double scroll_delta_y, int64_t buttons)
Definition: fl_scrolling_view_delegate.h:36
_FlScrollingViewDelegateInterface::send_pointer_pan_zoom_event
void(* send_pointer_pan_zoom_event)(FlScrollingViewDelegate *delegate, size_t timestamp, double x, double y, FlutterPointerPhase phase, double pan_x, double pan_y, double scale, double rotation)
Definition: fl_scrolling_view_delegate.h:45
fl_binary_messenger.h
fl_scrolling_view_delegate_send_mouse_pointer_event
void fl_scrolling_view_delegate_send_mouse_pointer_event(FlScrollingViewDelegate *delegate, FlutterPointerPhase phase, size_t timestamp, double x, double y, double scroll_delta_x, double scroll_delta_y, int64_t buttons)
Definition: fl_scrolling_view_delegate.cc:14
FL
FL
Definition: fl_binary_messenger.cc:27
G_DECLARE_INTERFACE
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlScrollingViewDelegate, fl_scrolling_view_delegate, FL, SCROLLING_VIEW_DELEGATE, GObject)
_FlScrollingViewDelegateInterface
Definition: fl_scrolling_view_delegate.h:33
fl_key_event.h
fl_scrolling_view_delegate_send_pointer_pan_zoom_event
void fl_scrolling_view_delegate_send_pointer_pan_zoom_event(FlScrollingViewDelegate *delegate, size_t timestamp, double x, double y, FlutterPointerPhase phase, double pan_x, double pan_y, double scale, double rotation)
Definition: fl_scrolling_view_delegate.cc:28
_FlScrollingViewDelegateInterface::g_iface
GTypeInterface g_iface
Definition: fl_scrolling_view_delegate.h:34