#include "flutter/shell/platform/embedder/embedder.h"#include "flutter/shell/platform/linux/public/flutter_linux/fl_engine.h"Go to the source code of this file.
Functions | |
| G_BEGIN_DECLS | G_DECLARE_FINAL_TYPE (FlPointerManager, fl_pointer_manager, FL, POINTER_MANAGER, GObject) |
| FlPointerManager * | fl_pointer_manager_new (FlutterViewId view_id, FlEngine *engine) |
| gboolean | fl_pointer_manager_handle_button_press (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button, gdouble rotation, gdouble pressure) |
| gboolean | fl_pointer_manager_handle_button_release (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button, gdouble rotation, gdouble pressure) |
| gboolean | fl_pointer_manager_handle_motion (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure) |
| gboolean | fl_pointer_manager_handle_enter (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure) |
| gboolean | fl_pointer_manager_handle_leave (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, gdouble rotation, gdouble pressure) |
| gboolean fl_pointer_manager_handle_button_press | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| guint | gdk_button, | ||
| gdouble | rotation, | ||
| gdouble | pressure | ||
| ) |
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. @rotation: rotation of the pointer device in degrees. @pressure: pressure of the pointer device.
Returns TRUE if this event was handled.
Definition at line 133 of file fl_pointer_manager.cc.
References engine, ensure_pointer_added(), fl_engine_send_mouse_pointer_event(), g_autoptr(), get_button(), kDown, kMicrosecondsPerMillisecond, kMove, self, TRUE, x, and y.
Referenced by button_press_event_cb(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| gboolean fl_pointer_manager_handle_button_release | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| guint | gdk_button, | ||
| gdouble | rotation, | ||
| gdouble | pressure | ||
| ) |
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. @rotation: rotation of the pointer device in degrees. @pressure: pressure of the pointer device.
Returns TRUE if this event was handled.
Definition at line 173 of file fl_pointer_manager.cc.
References engine, fl_engine_send_mouse_pointer_event(), g_autoptr(), get_button(), kMicrosecondsPerMillisecond, kMove, kUp, self, TRUE, x, and y.
Referenced by button_release_event_cb(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| gboolean fl_pointer_manager_handle_enter | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| gdouble | rotation, | ||
| gdouble | pressure | ||
| ) |
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. @rotation: rotation of the pointer device in degrees. @pressure: pressure of the pointer device.
Returns TRUE if this event was handled.
Definition at line 235 of file fl_pointer_manager.cc.
References engine, ensure_pointer_added(), g_autoptr(), self, TRUE, x, and y.
Referenced by enter_notify_event_cb(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| gboolean fl_pointer_manager_handle_leave | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| gdouble | rotation, | ||
| gdouble | pressure | ||
| ) |
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. @rotation: rotation of the pointer device in degrees. @pressure: pressure of the pointer device.
Returns TRUE if this event was handled.
Definition at line 254 of file fl_pointer_manager.cc.
References engine, fl_engine_send_mouse_pointer_event(), g_autoptr(), kMicrosecondsPerMillisecond, kRemove, self, TRUE, x, and y.
Referenced by leave_notify_event_cb(), TEST_F(), TEST_F(), and TEST_F().
| gboolean fl_pointer_manager_handle_motion | ( | FlPointerManager * | manager, |
| guint | event_time, | ||
| FlutterPointerDeviceKind | device_kind, | ||
| gdouble | x, | ||
| gdouble | y, | ||
| gdouble | rotation, | ||
| gdouble | pressure | ||
| ) |
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. @rotation: rotation of the pointer device in degrees. @pressure: pressure of the pointer device.
Returns TRUE if this event was handled.
Definition at line 211 of file fl_pointer_manager.cc.
References engine, ensure_pointer_added(), fl_engine_send_mouse_pointer_event(), g_autoptr(), kHover, kMicrosecondsPerMillisecond, kMove, self, TRUE, x, and y.
Referenced by motion_notify_event_cb(), TEST_F(), TEST_F(), and TEST_F().
| 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 122 of file fl_pointer_manager.cc.
References engine, self, and view_id.
Referenced by setup_engine(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().
| G_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlPointerManager | , |
| fl_pointer_manager | , | ||
| FL | , | ||
| POINTER_MANAGER | , | ||
| GObject | |||
| ) |