#include "flutter/shell/platform/linux/fl_mouse_cursor_plugin.h"
#include <gtk/gtk.h>
#include <cstring>
#include "flutter/shell/platform/linux/public/flutter_linux/fl_method_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_standard_method_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlMouseCursorPlugin |
Functions | |
static bool | define_system_cursor (GHashTable *table, const gchar *key, const gchar *value) |
static void | populate_system_cursor_table (GHashTable *table) |
FlMethodResponse * | activate_system_cursor (FlMouseCursorPlugin *self, FlValue *args) |
static void | method_call_cb (FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data) |
static void | fl_mouse_cursor_plugin_dispose (GObject *object) |
static void | fl_mouse_cursor_plugin_class_init (FlMouseCursorPluginClass *klass) |
static void | fl_mouse_cursor_plugin_init (FlMouseCursorPlugin *self) |
FlMouseCursorPlugin * | fl_mouse_cursor_plugin_new (FlBinaryMessenger *messenger, FlView *view) |
Variables | |
static constexpr char | kChannelName [] = "flutter/mousecursor" |
static constexpr char | kBadArgumentsError [] = "Bad Arguments" |
static constexpr char | kActivateSystemCursorMethod [] = "activateSystemCursor" |
static constexpr char | kKindKey [] = "kind" |
static constexpr char | kFallbackCursor [] = "default" |
FlMethodResponse* activate_system_cursor | ( | FlMouseCursorPlugin * | self, |
FlValue * | args | ||
) |
Definition at line 88 of file fl_mouse_cursor_plugin.cc.
References args, fl_method_error_response_new(), fl_method_success_response_new(), fl_value_get_string(), fl_value_get_type(), fl_value_lookup_string(), FL_VALUE_TYPE_MAP, FL_VALUE_TYPE_STRING, kBadArgumentsError, kFallbackCursor, kKindKey, and populate_system_cursor_table().
Referenced by method_call_cb().
|
static |
Definition at line 35 of file fl_mouse_cursor_plugin.cc.
References value.
Referenced by populate_system_cursor_table().
|
static |
Definition at line 157 of file fl_mouse_cursor_plugin.cc.
References fl_mouse_cursor_plugin_dispose().
|
static |
Definition at line 143 of file fl_mouse_cursor_plugin.cc.
Referenced by fl_mouse_cursor_plugin_class_init().
|
static |
Definition at line 161 of file fl_mouse_cursor_plugin.cc.
FlMouseCursorPlugin* fl_mouse_cursor_plugin_new | ( | FlBinaryMessenger * | messenger, |
FlView * | view | ||
) |
FlMouseCursorPlugin:
#FlMouseCursorPlugin is a mouse_cursor channel that implements the shell side of SystemChannels.mouseCursor from the Flutter services library. fl_mouse_cursor_plugin_new: @messenger: an #FlBinaryMessenger. @view: an #FlView to control.
Creates a new plugin that implements SystemChannels.mouseCursor from the Flutter services library.
Returns: a new #FlMouseCursorPlugin.
Definition at line 163 of file fl_mouse_cursor_plugin.cc.
References fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), kChannelName, and method_call_cb().
Referenced by create_context_cb().
|
static |
Definition at line 122 of file fl_mouse_cursor_plugin.cc.
References activate_system_cursor(), args, error, fl_method_call_get_args(), fl_method_call_get_name(), fl_method_call_respond(), fl_method_not_implemented_response_new(), kActivateSystemCursorMethod, method_call, and user_data.
Referenced by fl_mouse_cursor_plugin_new().
|
static |
Definition at line 47 of file fl_mouse_cursor_plugin.cc.
References define_system_cursor().
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 15 of file fl_mouse_cursor_plugin.cc.
Referenced by method_call_cb().
|
staticconstexpr |
Definition at line 14 of file fl_mouse_cursor_plugin.cc.
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 13 of file fl_mouse_cursor_plugin.cc.
Referenced by fl_mouse_cursor_plugin_new().
|
staticconstexpr |
Definition at line 18 of file fl_mouse_cursor_plugin.cc.
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 16 of file fl_mouse_cursor_plugin.cc.
Referenced by activate_system_cursor().