| 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 double scroll_delta_x,
21 double scroll_delta_y,
22 int64_t buttons) {
23 g_return_if_fail(FL_IS_SCROLLING_VIEW_DELEGATE(self));
24
25 FL_SCROLLING_VIEW_DELEGATE_GET_IFACE(self)->send_mouse_pointer_event(
26 self, phase, timestamp, x, y, scroll_delta_x, scroll_delta_y, buttons);
27 }
28 void fl_scrolling_view_delegate_send_pointer_pan_zoom_event(
29 FlScrollingViewDelegate* self,
30 size_t timestamp,
31 double x,
32 double y,
33 FlutterPointerPhase phase,
34 double pan_x,
35 double pan_y,
36 double scale,
37 double rotation) {
38 g_return_if_fail(FL_IS_SCROLLING_VIEW_DELEGATE(self));
39
40 FL_SCROLLING_VIEW_DELEGATE_GET_IFACE(self)->send_pointer_pan_zoom_event(
41 self, timestamp, x, y, phase, pan_x, pan_y, scale, rotation);
42 }
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, 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:28