#include "flutter/shell/platform/linux/fl_mouse_cursor_handler.h"#include <cstring>#include "flutter/shell/platform/linux/fl_mouse_cursor_channel.h"Go to the source code of this file.
Classes | |
| struct | _FlMouseCursorHandler |
Enumerations | |
| enum | { SIGNAL_CURSOR_CHANGED , LAST_SIGNAL } |
Functions | |
| static bool | define_system_cursor (GHashTable *table, const gchar *key, const gchar *value) |
| static void | populate_system_cursor_table (GHashTable *table) |
| static void | activate_system_cursor (const gchar *kind, gpointer user_data) |
| static void | fl_mouse_cursor_handler_dispose (GObject *object) |
| static void | fl_mouse_cursor_handler_class_init (FlMouseCursorHandlerClass *klass) |
| static void | fl_mouse_cursor_handler_init (FlMouseCursorHandler *self) |
| FlMouseCursorHandler * | fl_mouse_cursor_handler_new (FlBinaryMessenger *messenger) |
| const gchar * | fl_mouse_cursor_handler_get_cursor_name (FlMouseCursorHandler *self) |
Variables | |
| static constexpr char | kFallbackCursor [] = "default" |
| static guint | fl_mouse_cursor_handler_signals [LAST_SIGNAL] |
| static FlMouseCursorChannelVTable | mouse_cursor_vtable |
| anonymous enum |
| Enumerator | |
|---|---|
| SIGNAL_CURSOR_CHANGED | |
| LAST_SIGNAL | |
Definition at line 24 of file fl_mouse_cursor_handler.cc.
|
static |
Definition at line 86 of file fl_mouse_cursor_handler.cc.
References fl_mouse_cursor_handler_signals, g_signal_emit(), kFallbackCursor, populate_system_cursor_table(), self, SIGNAL_CURSOR_CHANGED, and user_data.
|
static |
Definition at line 33 of file fl_mouse_cursor_handler.cc.
References g_hash_table_insert(), key, and value.
Referenced by populate_system_cursor_table().
|
static |
Definition at line 117 of file fl_mouse_cursor_handler.cc.
References fl_mouse_cursor_handler_dispose(), fl_mouse_cursor_handler_signals, and SIGNAL_CURSOR_CHANGED.
|
static |
Definition at line 107 of file fl_mouse_cursor_handler.cc.
References self.
Referenced by fl_mouse_cursor_handler_class_init().
| const gchar * fl_mouse_cursor_handler_get_cursor_name | ( | FlMouseCursorHandler * | handler | ) |
fl_mouse_cursor_handler_get_cursor_name: @handler: an #FlMouseCursorHandler.
Get the name of the current mouse cursor.
Returns: a mouse cursor name.
Definition at line 147 of file fl_mouse_cursor_handler.cc.
References self.
Referenced by cursor_changed_cb().
|
static |
Definition at line 126 of file fl_mouse_cursor_handler.cc.
References self.
| FlMouseCursorHandler * fl_mouse_cursor_handler_new | ( | FlBinaryMessenger * | messenger | ) |
FlMouseCursorHandler:
#FlMouseCursorHandler is a mouse_cursor channel that implements the shell side of SystemChannels.mouseCursor from the Flutter services library. fl_mouse_cursor_handler_new: @messenger: an #FlBinaryMessenger.
Creates a new handler that implements SystemChannels.mouseCursor from the Flutter services library.
Returns: a new #FlMouseCursorHandler.
Definition at line 134 of file fl_mouse_cursor_handler.cc.
References fl_mouse_cursor_channel_new(), mouse_cursor_vtable, and self.
Referenced by fl_engine_new_full().
|
static |
Definition at line 45 of file fl_mouse_cursor_handler.cc.
References define_system_cursor().
Referenced by activate_system_cursor().
|
static |
Definition at line 26 of file fl_mouse_cursor_handler.cc.
Referenced by activate_system_cursor(), and fl_mouse_cursor_handler_class_init().
|
staticconstexpr |
Definition at line 11 of file fl_mouse_cursor_handler.cc.
Referenced by activate_system_cursor().
|
static |
Definition at line 130 of file fl_mouse_cursor_handler.cc.
Referenced by fl_mouse_cursor_handler_new().