#include "flutter/shell/platform/linux/fl_mouse_cursor_channel.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 | _FlMouseCursorChannel |
Functions | |
static FlMethodResponse * | activate_system_cursor (FlMouseCursorChannel *self, FlValue *args) |
static void | method_call_cb (FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data) |
static void | fl_mouse_cursor_channel_dispose (GObject *object) |
static void | fl_mouse_cursor_channel_class_init (FlMouseCursorChannelClass *klass) |
static void | fl_mouse_cursor_channel_init (FlMouseCursorChannel *self) |
FlMouseCursorChannel * | fl_mouse_cursor_channel_new (FlBinaryMessenger *messenger, FlMouseCursorChannelVTable *vtable, gpointer user_data) |
Variables | |
static constexpr char | kChannelName [] = "flutter/mousecursor" |
static constexpr char | kBadArgumentsError [] = "Bad Arguments" |
static constexpr char | kActivateSystemCursorMethod [] = "activateSystemCursor" |
static constexpr char | kKindKey [] = "kind" |
|
static |
Definition at line 30 of file fl_mouse_cursor_channel.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, and kKindKey.
Referenced by method_call_cb().
|
static |
Definition at line 78 of file fl_mouse_cursor_channel.cc.
References fl_mouse_cursor_channel_dispose().
|
static |
Definition at line 70 of file fl_mouse_cursor_channel.cc.
Referenced by fl_mouse_cursor_channel_class_init().
|
static |
Definition at line 83 of file fl_mouse_cursor_channel.cc.
FlMouseCursorChannel* fl_mouse_cursor_channel_new | ( | FlBinaryMessenger * | messenger, |
FlMouseCursorChannelVTable * | vtable, | ||
gpointer | user_data | ||
) |
fl_mouse_cursor_channel_new: @messenger: an #FlBinaryMessenger. @vtable: callbacks for incoming method calls. @user_data: data to pass in callbacks.
Creates a new channel that implements SystemChannels.mouseCursor from the Flutter services library.
Returns: a new #FlMouseCursorChannel.
Definition at line 85 of file fl_mouse_cursor_channel.cc.
References fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), kChannelName, method_call_cb(), and user_data.
Referenced by fl_mouse_cursor_handler_new().
|
static |
Definition at line 49 of file fl_mouse_cursor_channel.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_channel_new().
|
staticconstexpr |
Definition at line 14 of file fl_mouse_cursor_channel.cc.
Referenced by method_call_cb().
|
staticconstexpr |
Definition at line 13 of file fl_mouse_cursor_channel.cc.
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 12 of file fl_mouse_cursor_channel.cc.
Referenced by fl_mouse_cursor_channel_new().
|
staticconstexpr |
Definition at line 15 of file fl_mouse_cursor_channel.cc.
Referenced by activate_system_cursor().