| Flutter Linux Embedder |

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
7 G_DEFINE_INTERFACE(FlScrollingViewDelegate,
8 fl_scrolling_view_delegate,
9 G_TYPE_OBJECT)
10
11 static void fl_scrolling_view_delegate_default_init(
12 FlScrollingViewDelegateInterface* iface) {}
13
14 void fl_scrolling_view_delegate_send_mouse_pointer_event(
15 FlScrollingViewDelegate* self,
16 FlutterPointerPhase phase,
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 }
30 void fl_scrolling_view_delegate_send_pointer_pan_zoom_event(
31 FlScrollingViewDelegate* self,
32 size_t timestamp,
33 double x,
34 double y,
35 FlutterPointerPhase phase,
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 }
fl_scrolling_view_delegate.h
fl_scrolling_view_delegate_send_mouse_pointer_event
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)
Definition: fl_scrolling_view_delegate.cc:14
G_DEFINE_INTERFACE
G_DEFINE_INTERFACE(FlScrollingViewDelegate, fl_scrolling_view_delegate, G_TYPE_OBJECT) static void fl_scrolling_view_delegate_default_init(FlScrollingViewDelegateInterface *iface)
Definition: fl_scrolling_view_delegate.cc:7
fl_scrolling_view_delegate_send_pointer_pan_zoom_event
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)
Definition: fl_scrolling_view_delegate.cc:30