#include "flutter/shell/platform/linux/fl_scrolling_manager.h"
#include "flutter/shell/platform/embedder/embedder.h"
#include "flutter/shell/platform/linux/fl_engine_private.h"
Go to the source code of this file.
Classes | |
struct | _FlScrollingManager |
Functions | |
G_DEFINE_TYPE (FlScrollingManager, fl_scrolling_manager, G_TYPE_OBJECT) | |
static void | fl_scrolling_manager_dispose (GObject *object) |
static void | fl_scrolling_manager_class_init (FlScrollingManagerClass *klass) |
static void | fl_scrolling_manager_init (FlScrollingManager *self) |
FlScrollingManager * | fl_scrolling_manager_new (FlEngine *engine, FlutterViewId view_id) |
void | fl_scrolling_manager_set_last_mouse_position (FlScrollingManager *self, gdouble x, gdouble y) |
void | fl_scrolling_manager_handle_scroll_event (FlScrollingManager *self, GdkEventScroll *scroll_event, gint scale_factor) |
void | fl_scrolling_manager_handle_rotation_begin (FlScrollingManager *self) |
void | fl_scrolling_manager_handle_rotation_update (FlScrollingManager *self, gdouble rotation) |
void | fl_scrolling_manager_handle_rotation_end (FlScrollingManager *self) |
void | fl_scrolling_manager_handle_zoom_begin (FlScrollingManager *self) |
void | fl_scrolling_manager_handle_zoom_update (FlScrollingManager *self, gdouble scale) |
void | fl_scrolling_manager_handle_zoom_end (FlScrollingManager *self) |
Variables | |
static constexpr int | kMicrosecondsPerMillisecond = 1000 |
|
static |
Definition at line 41 of file fl_scrolling_manager.cc.
References fl_scrolling_manager_dispose().
|
static |
Definition at line 33 of file fl_scrolling_manager.cc.
Referenced by fl_scrolling_manager_class_init().
void fl_scrolling_manager_handle_rotation_begin | ( | FlScrollingManager * | manager | ) |
fl_scrolling_manager_handle_rotation_begin: @manager: an #FlScrollingManager.
Inform the scrolling manager that a rotation gesture has begun.
Definition at line 153 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event(), and TRUE.
Referenced by gesture_rotation_begin_cb(), and TEST().
void fl_scrolling_manager_handle_rotation_end | ( | FlScrollingManager * | manager | ) |
fl_scrolling_manager_handle_rotation_end: @manager: an #FlScrollingManager.
Inform the scrolling manager that a rotation gesture has ended.
Definition at line 186 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event().
Referenced by gesture_rotation_end_cb(), and TEST().
void fl_scrolling_manager_handle_rotation_update | ( | FlScrollingManager * | manager, |
gdouble | rotation | ||
) |
fl_scrolling_manager_handle_rotation_update: @manager: an #FlScrollingManager. @rotation: the rotation angle, in radians.
Inform the scrolling manager that a rotation gesture has updated.
Definition at line 171 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event().
Referenced by gesture_rotation_update_cb(), and TEST().
void fl_scrolling_manager_handle_scroll_event | ( | FlScrollingManager * | manager, |
GdkEventScroll * | event, | ||
gint | scale_factor | ||
) |
fl_scrolling_manager_handle_scroll_event: @manager: an #FlScrollingManager. @event: the scroll event. @scale_factor: the GTK scaling factor of the window.
Inform the scrolling manager of a scroll event.
Definition at line 71 of file fl_scrolling_manager.cc.
References fl_engine_send_mouse_pointer_event(), fl_engine_send_pointer_pan_zoom_event(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by scroll_event_cb(), and TEST().
void fl_scrolling_manager_handle_zoom_begin | ( | FlScrollingManager * | manager | ) |
fl_scrolling_manager_handle_zoom_begin: @manager: an #FlScrollingManager.
Inform the scrolling manager that a zoom gesture has begun.
Definition at line 202 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event(), and TRUE.
Referenced by gesture_zoom_begin_cb(), and TEST().
void fl_scrolling_manager_handle_zoom_end | ( | FlScrollingManager * | manager | ) |
fl_scrolling_manager_handle_zoom_end: @manager: an #FlScrollingManager.
Inform the scrolling manager that a zoom gesture has ended.
Definition at line 235 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event().
Referenced by gesture_zoom_end_cb(), and TEST().
void fl_scrolling_manager_handle_zoom_update | ( | FlScrollingManager * | manager, |
gdouble | scale | ||
) |
fl_scrolling_manager_handle_zoom_update: @manager: an #FlScrollingManager. @scale: the zoom scale.
Inform the scrolling manager that a zoom gesture has updated.
Definition at line 220 of file fl_scrolling_manager.cc.
References fl_engine_send_pointer_pan_zoom_event().
Referenced by gesture_zoom_update_cb(), and TEST().
|
static |
Definition at line 45 of file fl_scrolling_manager.cc.
FlScrollingManager* fl_scrolling_manager_new | ( | FlEngine * | engine, |
FlutterViewId | view_id | ||
) |
fl_scrolling_manager_new: @engine: an #FlEngine. @view_id: the view being managed.
Create a new #FlScrollingManager.
Returns: a new #FlScrollingManager.
Definition at line 47 of file fl_scrolling_manager.cc.
Referenced by init_scrolling(), and TEST().
void fl_scrolling_manager_set_last_mouse_position | ( | FlScrollingManager * | manager, |
gdouble | x, | ||
gdouble | y | ||
) |
fl_scrolling_manager_set_last_mouse_position: @manager: an #FlScrollingManager. @x: the mouse x-position, in window coordinates. @y: the mouse y-position, in window coordinates.
Inform the scrolling manager of the mouse position. This position will be used when sending scroll pointer events.
Definition at line 63 of file fl_scrolling_manager.cc.
Referenced by set_scrolling_position().
G_DEFINE_TYPE | ( | FlScrollingManager | , |
fl_scrolling_manager | , | ||
G_TYPE_OBJECT | |||
) |
|
staticconstexpr |
Definition at line 9 of file fl_scrolling_manager.cc.
Referenced by fl_scrolling_manager_handle_scroll_event().