Flutter Linux Embedder
fl_scrolling_view_delegate.cc File Reference

Go to the source code of this file.

Functions

 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)
 

Function Documentation

◆ 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 at line 14 of file fl_scrolling_view_delegate.cc.

23  {
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 }

Referenced by fl_scrolling_manager_handle_scroll_event().

◆ 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 at line 30 of file fl_scrolling_view_delegate.cc.

39  {
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 }

Referenced by fl_scrolling_manager_handle_rotation_begin(), fl_scrolling_manager_handle_rotation_end(), fl_scrolling_manager_handle_rotation_update(), fl_scrolling_manager_handle_scroll_event(), fl_scrolling_manager_handle_zoom_begin(), fl_scrolling_manager_handle_zoom_end(), and fl_scrolling_manager_handle_zoom_update().

◆ G_DEFINE_INTERFACE()

G_DEFINE_INTERFACE ( FlScrollingViewDelegate  ,
fl_scrolling_view_delegate  ,
G_TYPE_OBJECT   
)

Definition at line 7 of file fl_scrolling_view_delegate.cc.

12  {}