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