#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) |
| gboolean | fl_pointer_manager_handle_button_release (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y, guint gdk_button) |
| gboolean | fl_pointer_manager_handle_motion (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| gboolean | fl_pointer_manager_handle_enter (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| gboolean | fl_pointer_manager_handle_leave (FlPointerManager *manager, guint event_time, FlutterPointerDeviceKind device_kind, gdouble x, gdouble y) |
| 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().
| 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_BEGIN_DECLS G_DECLARE_FINAL_TYPE | ( | FlPointerManager | , |
| fl_pointer_manager | , | ||
| FL | , | ||
| POINTER_MANAGER | , | ||
| GObject | |||
| ) |