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 (FlScrollingViewDelegate *view_delegate) |
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 29 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 151 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event(), and TRUE.
Referenced by gesture_rotation_begin_cb().
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 174 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event().
Referenced by gesture_rotation_end_cb().
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 164 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event().
Referenced by gesture_rotation_update_cb().
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 74 of file fl_scrolling_manager.cc.
References event, fl_scrolling_view_delegate_send_mouse_pointer_event(), fl_scrolling_view_delegate_send_pointer_pan_zoom_event(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by scroll_event_cb().
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 185 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event(), and TRUE.
Referenced by gesture_zoom_begin_cb().
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 208 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event().
Referenced by gesture_zoom_end_cb().
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 198 of file fl_scrolling_manager.cc.
References fl_scrolling_view_delegate_send_pointer_pan_zoom_event().
Referenced by gesture_zoom_update_cb().
|
static |
Definition at line 45 of file fl_scrolling_manager.cc.
FlScrollingManager* fl_scrolling_manager_new | ( | FlScrollingViewDelegate * | view_delegate | ) |
fl_scrolling_manager_new: @view_delegate: An interface that the manager requires to communicate with the platform. Usually implemented by FlView.
Create a new #FlScrollingManager.
Returns: a new #FlScrollingManager.
Definition at line 47 of file fl_scrolling_manager.cc.
Referenced by init_scrolling().
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 66 of file fl_scrolling_manager.cc.
Referenced by send_pointer_button_event().
G_DEFINE_TYPE | ( | FlScrollingManager | , |
fl_scrolling_manager | , | ||
G_TYPE_OBJECT | |||
) |
|
staticconstexpr |
Definition at line 7 of file fl_scrolling_manager.cc.
Referenced by fl_scrolling_manager_handle_scroll_event().