#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 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, int64_t button) |
gboolean | fl_pointer_manager_handle_button_release (FlPointerManager *self, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, int64_t 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 |
Definition at line 31 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 59 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, | ||
int64_t | 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. @button: button being pressed.
Returns TRUE if this event was handled.
Definition at line 76 of file fl_pointer_manager.cc.
References ensure_pointer_added(), fl_engine_send_mouse_pointer_event(), 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, | ||
int64_t | 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. @button: button being released.
Returns TRUE if this event was handled.
Definition at line 109 of file fl_pointer_manager.cc.
References fl_engine_send_mouse_pointer_event(), 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 162 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 179 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 140 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 63 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 65 of file fl_pointer_manager.cc.
Referenced by fl_view_new(), fl_view_new_for_engine(), and TEST().
G_DEFINE_TYPE | ( | FlPointerManager | , |
fl_pointer_manager | , | ||
G_TYPE_OBJECT | |||
) |
|
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().