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"
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 
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  FlutterPointerDeviceKind device_kind,
42  double scroll_delta_x,
43  double scroll_delta_y,
44  int64_t buttons);
45 
46  void (*send_pointer_pan_zoom_event)(FlScrollingViewDelegate* delegate,
47  size_t timestamp,
48  double x,
49  double y,
50  FlutterPointerPhase phase,
51  double pan_x,
52  double pan_y,
53  double scale,
54  double rotation);
55 };
56 
58  FlScrollingViewDelegate* delegate,
59  FlutterPointerPhase phase,
60  size_t timestamp,
61  double x,
62  double y,
63  FlutterPointerDeviceKind device_kind,
64  double scroll_delta_x,
65  double scroll_delta_y,
66  int64_t buttons);
68  FlScrollingViewDelegate* delegate,
69  size_t timestamp,
70  double x,
71  double y,
72  FlutterPointerPhase phase,
73  double pan_x,
74  double pan_y,
75  double scale,
76  double rotation);
77 
78 G_END_DECLS
79 
80 #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, FlutterPointerDeviceKind device_kind, 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:46
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, FlutterPointerDeviceKind device_kind, double scroll_delta_x, double scroll_delta_y, int64_t buttons)
Definition: fl_scrolling_view_delegate.cc:14
fl_binary_messenger.h
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:30
_FlScrollingViewDelegateInterface::g_iface
GTypeInterface g_iface
Definition: fl_scrolling_view_delegate.h:34