Flutter Engine
The Flutter Engine
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
fl_scrolling_view_delegate.cc
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#include "flutter/shell/platform/linux/fl_scrolling_view_delegate.h"
6
7G_DEFINE_INTERFACE(FlScrollingViewDelegate,
8 fl_scrolling_view_delegate,
9 G_TYPE_OBJECT)
10
11static void fl_scrolling_view_delegate_default_init(
12 FlScrollingViewDelegateInterface* iface) {}
13
15 FlScrollingViewDelegate* self,
17 size_t timestamp,
18 double x,
19 double y,
20 FlutterPointerDeviceKind device_kind,
21 double scroll_delta_x,
22 double scroll_delta_y,
23 int64_t buttons) {
24 g_return_if_fail(FL_IS_SCROLLING_VIEW_DELEGATE(self));
25
26 FL_SCROLLING_VIEW_DELEGATE_GET_IFACE(self)->send_mouse_pointer_event(
27 self, phase, timestamp, x, y, device_kind, scroll_delta_x, scroll_delta_y,
28 buttons);
29}
31 FlScrollingViewDelegate* self,
32 size_t timestamp,
33 double x,
34 double y,
36 double pan_x,
37 double pan_y,
38 double scale,
39 double rotation) {
40 g_return_if_fail(FL_IS_SCROLLING_VIEW_DELEGATE(self));
41
42 FL_SCROLLING_VIEW_DELEGATE_GET_IFACE(self)->send_pointer_pan_zoom_event(
43 self, timestamp, x, y, phase, pan_x, pan_y, scale, rotation);
44}
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_DEFINE_INTERFACE(FlScrollingViewDelegate, fl_scrolling_view_delegate, G_TYPE_OBJECT) static void fl_scrolling_view_delegate_default_init(FlScrollingViewDelegateInterface *iface)
void fl_scrolling_view_delegate_send_mouse_pointer_event(FlScrollingViewDelegate *self, 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 *self, 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