#include "flutter/shell/platform/linux/fl_pointer_manager.h"#include "flutter/shell/platform/linux/fl_engine_private.h"Go to the source code of this file.
Classes | |
| struct | _FlPointerManager |
Functions | |
| G_DEFINE_TYPE (FlPointerManager, fl_pointer_manager, G_TYPE_OBJECT) | |
| static gboolean | get_mouse_button (guint gdk_button, int64_t *button) |
| static void | ensure_pointer_added (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| static void | fl_pointer_manager_dispose (GObject *object) |
| static void | fl_pointer_manager_class_init (FlPointerManagerClass *klass) |
| static void | fl_pointer_manager_init (FlPointerManager *self) |
| FlPointerManager * | fl_pointer_manager_new (FlutterViewId view_id, FlEngine *engine) |
| gboolean | fl_pointer_manager_handle_button_press (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button) |
| gboolean | fl_pointer_manager_handle_button_release (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button) |
| gboolean | fl_pointer_manager_handle_motion (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| gboolean | fl_pointer_manager_handle_enter (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| gboolean | fl_pointer_manager_handle_leave (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
Variables | |
| static constexpr int | kMicrosecondsPerMillisecond = 1000 |
| static constexpr guint | kMouseButtonBack = 8 |
| static constexpr guint | kMouseButtonForward = 9 |
|
static |
Definition at line 60 of file fl_pointer_manager.cc.
References fl_engine_send_mouse_pointer_event(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by fl_pointer_manager_handle_button_press(), fl_pointer_manager_handle_enter(), and fl_pointer_manager_handle_motion().
|
static |
Definition at line 88 of file fl_pointer_manager.cc.
References fl_pointer_manager_dispose().
|
static |
| gboolean fl_pointer_manager_handle_button_press | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| guint | gdk_button | ||
| ) |
fl_pointer_manager_handle_button_press: @manager: an #FlPointerManager. @event_time: event time in milliseconds. @device_kind: kind of device generating the event. @x: x co-ordinate of event. @y: y co-ordinate of event. @gdk_button: button being pressed.
Returns TRUE if this event was handled.
Definition at line 105 of file fl_pointer_manager.cc.
References ensure_pointer_added(), fl_engine_send_mouse_pointer_event(), get_mouse_button(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by button_press_event_cb(), and TEST().
| gboolean fl_pointer_manager_handle_button_release | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| guint | gdk_button | ||
| ) |
fl_pointer_manager_handle_button_release: @manager: an #FlPointerManager. @event_time: event time in milliseconds. @device_kind: kind of device generating the event. @x: x co-ordinate of event. @y: y co-ordinate of event. @gdk_button: button being released.
Returns TRUE if this event was handled.
Definition at line 143 of file fl_pointer_manager.cc.
References fl_engine_send_mouse_pointer_event(), get_mouse_button(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by button_release_event_cb(), and TEST().
| gboolean fl_pointer_manager_handle_enter | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y | ||
| ) |
fl_pointer_manager_handle_enter: @manager: an #FlPointerManager. @event_time: event time in milliseconds. @device_kind: kind of device generating the event. @x: x co-ordinate of event. @y: y co-ordinate of event.
Returns TRUE if this event was handled.
Definition at line 201 of file fl_pointer_manager.cc.
References ensure_pointer_added(), and TRUE.
Referenced by enter_notify_event_cb(), and TEST().
| gboolean fl_pointer_manager_handle_leave | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y | ||
| ) |
fl_pointer_manager_handle_leave: @manager: an #FlPointerManager. @event_time: event time in milliseconds. @device_kind: kind of device generating the event. @x: x co-ordinate of event. @y: y co-ordinate of event.
Returns TRUE if this event was handled.
Definition at line 218 of file fl_pointer_manager.cc.
References fl_engine_send_mouse_pointer_event(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by leave_notify_event_cb(), and TEST().
| gboolean fl_pointer_manager_handle_motion | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y | ||
| ) |
fl_pointer_manager_handle_motion: @manager: an #FlPointerManager. @event_time: event time in milliseconds. @device_kind: kind of device generating the event. @x: x co-ordinate of event. @y: y co-ordinate of event.
Returns TRUE if this event was handled.
Definition at line 179 of file fl_pointer_manager.cc.
References ensure_pointer_added(), fl_engine_send_mouse_pointer_event(), kMicrosecondsPerMillisecond, and TRUE.
Referenced by motion_notify_event_cb(), and TEST().
|
static |
Definition at line 92 of file fl_pointer_manager.cc.
| FlPointerManager* fl_pointer_manager_new | ( | FlutterViewId | view_id, |
| FlEngine * | engine | ||
| ) |
fl_pointer_manager_new: @view_id: view ID to report events for. @engine: an #FlEngine.
Create a new #FlPointerManager.
Returns: a new #FlPointerManager.
Definition at line 94 of file fl_pointer_manager.cc.
References view_id.
Referenced by setup_engine(), and TEST().
| G_DEFINE_TYPE | ( | FlPointerManager | , |
| fl_pointer_manager | , | ||
| G_TYPE_OBJECT | |||
| ) |
|
static |
Definition at line 37 of file fl_pointer_manager.cc.
References kMouseButtonBack, kMouseButtonForward, and TRUE.
Referenced by fl_pointer_manager_handle_button_press(), and fl_pointer_manager_handle_button_release().
|
staticconstexpr |
Definition at line 9 of file fl_pointer_manager.cc.
Referenced by ensure_pointer_added(), fl_pointer_manager_handle_button_press(), fl_pointer_manager_handle_button_release(), fl_pointer_manager_handle_leave(), and fl_pointer_manager_handle_motion().
|
staticconstexpr |
Definition at line 31 of file fl_pointer_manager.cc.
Referenced by get_mouse_button().
|
staticconstexpr |
Definition at line 34 of file fl_pointer_manager.cc.
Referenced by get_mouse_button().