Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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 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,
50 double pan_x,
51 double pan_y,
52 double scale,
53 double rotation);
54};
55
57 FlScrollingViewDelegate* delegate,
59 size_t timestamp,
60 double x,
61 double y,
62 double scroll_delta_x,
63 double scroll_delta_y,
64 int64_t buttons);
66 FlScrollingViewDelegate* delegate,
67 size_t timestamp,
68 double x,
69 double y,
71 double pan_x,
72 double pan_y,
73 double scale,
74 double rotation);
75
76G_END_DECLS
77
78#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_SCROLLING_VIEW_DELEGATE_H_
FlutterPointerPhase
The phase of the pointer event.
Definition embedder.h:963
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, 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_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)
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)