Flutter Engine
The Flutter Engine
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
16G_BEGIN_DECLS
17
18G_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,
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,
51 double pan_x,
52 double pan_y,
53 double scale,
54 double rotation);
55};
56
58 FlScrollingViewDelegate* delegate,
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,
73 double pan_x,
74 double pan_y,
75 double scale,
76 double rotation);
77
78G_END_DECLS
79
80#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SCROLLING_VIEW_DELEGATE_H_
FlutterPointerPhase
The phase of the pointer event.
Definition: embedder.h:965
FlutterPointerDeviceKind
The device type that created a pointer event.
Definition: embedder.h:1007
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlScrollingViewDelegate, fl_scrolling_view_delegate, FL, SCROLLING_VIEW_DELEGATE, GObject)
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)
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)
double y
double x
const Scalar scale
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)
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)