#include "flutter/shell/platform/linux/fl_mouse_cursor_handler.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 | _FlMouseCursorHandler |
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 (FlMouseCursorHandler *self, FlValue *args) |
static void | method_call_cb (FlMethodChannel *channel, FlMethodCall *method_call, 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, 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 | ( | FlMouseCursorHandler * | self, |
FlValue * | args | ||
) |
Definition at line 88 of file fl_mouse_cursor_handler.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_handler.cc.
References value.
Referenced by populate_system_cursor_table().
|
static |
Definition at line 157 of file fl_mouse_cursor_handler.cc.
References fl_mouse_cursor_handler_dispose().
|
static |
Definition at line 143 of file fl_mouse_cursor_handler.cc.
Referenced by fl_mouse_cursor_handler_class_init().
|
static |
Definition at line 162 of file fl_mouse_cursor_handler.cc.
FlMouseCursorHandler* fl_mouse_cursor_handler_new | ( | FlBinaryMessenger * | messenger, |
FlView * | view | ||
) |
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. @view: an #FlView to control.
Creates a new handler that implements SystemChannels.mouseCursor from the Flutter services library.
Returns: a new #FlMouseCursorHandler.
Definition at line 164 of file fl_mouse_cursor_handler.cc.
References fl_method_channel_new(), fl_method_channel_set_method_call_handler(), fl_standard_method_codec_new(), kChannelName, method_call_cb(), and view.
Referenced by create_context_cb().
|
static |
Definition at line 122 of file fl_mouse_cursor_handler.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_handler_new().
|
static |
Definition at line 47 of file fl_mouse_cursor_handler.cc.
References define_system_cursor().
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 15 of file fl_mouse_cursor_handler.cc.
Referenced by method_call_cb().
|
staticconstexpr |
Definition at line 14 of file fl_mouse_cursor_handler.cc.
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 13 of file fl_mouse_cursor_handler.cc.
Referenced by fl_mouse_cursor_handler_new().
|
staticconstexpr |
Definition at line 18 of file fl_mouse_cursor_handler.cc.
Referenced by activate_system_cursor().
|
staticconstexpr |
Definition at line 16 of file fl_mouse_cursor_handler.cc.
Referenced by activate_system_cursor().