 |
Flutter Linux Embedder
|
|
Go to the documentation of this file.
27 G_DEFINE_TYPE(FlMouseCursorChannel, fl_mouse_cursor_channel, G_TYPE_OBJECT)
38 const gchar* kind =
nullptr;
43 self->vtable->activate_system_cursor(kind, self->user_data);
52 FlMouseCursorChannel*
self = FL_MOUSE_CURSOR_CHANNEL(
user_data);
57 g_autoptr(FlMethodResponse) response =
nullptr;
64 g_autoptr(GError)
error =
nullptr;
66 g_warning(
"Failed to send method call response: %s",
error->message);
71 FlMouseCursorChannel*
self = FL_MOUSE_CURSOR_CHANNEL(
object);
73 g_clear_object(&self->channel);
75 G_OBJECT_CLASS(fl_mouse_cursor_channel_parent_class)->dispose(
object);
79 FlMouseCursorChannelClass* klass) {
86 FlBinaryMessenger* messenger,
89 g_return_val_if_fail(FL_IS_BINARY_MESSENGER(messenger),
nullptr);
91 FlMouseCursorChannel*
self = FL_MOUSE_CURSOR_CHANNEL(
92 g_object_new(fl_mouse_cursor_channel_get_type(),
nullptr));
94 self->vtable = vtable;
G_MODULE_EXPORT FlMethodChannel * fl_method_channel_new(FlBinaryMessenger *messenger, const gchar *name, FlMethodCodec *codec)
G_MODULE_EXPORT FlMethodErrorResponse * fl_method_error_response_new(const gchar *code, const gchar *message, FlValue *details)
FlMouseCursorChannelVTable * vtable
G_MODULE_EXPORT FlMethodNotImplementedResponse * fl_method_not_implemented_response_new()
G_MODULE_EXPORT FlStandardMethodCodec * fl_standard_method_codec_new()
FlMouseCursorChannel * fl_mouse_cursor_channel_new(FlBinaryMessenger *messenger, FlMouseCursorChannelVTable *vtable, gpointer user_data)
typedefG_BEGIN_DECLS struct _FlValue FlValue
static FlMethodResponse * activate_system_cursor(FlMouseCursorChannel *self, FlValue *args)
static constexpr char kActivateSystemCursorMethod[]
G_MODULE_EXPORT FlValue * fl_value_lookup_string(FlValue *self, const gchar *key)
const G_MODULE_EXPORT gchar * fl_value_get_string(FlValue *self)
G_MODULE_EXPORT FlMethodSuccessResponse * fl_method_success_response_new(FlValue *result)
static void method_call_cb(FlMethodChannel *channel, FlMethodCall *method_call, gpointer user_data)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue gpointer user_data
G_MODULE_EXPORT gboolean fl_method_call_respond(FlMethodCall *self, FlMethodResponse *response, GError **error)
G_MODULE_EXPORT FlValueType fl_value_get_type(FlValue *self)
static constexpr char kBadArgumentsError[]
G_BEGIN_DECLS G_MODULE_EXPORT FlMethodCall * method_call
const G_MODULE_EXPORT gchar * fl_method_call_get_name(FlMethodCall *self)
G_DEFINE_TYPE(FlBasicMessageChannelResponseHandle, fl_basic_message_channel_response_handle, G_TYPE_OBJECT) static void fl_basic_message_channel_response_handle_dispose(GObject *object)
static void fl_mouse_cursor_channel_dispose(GObject *object)
static constexpr char kKindKey[]
static constexpr char kChannelName[]
G_MODULE_EXPORT void fl_method_channel_set_method_call_handler(FlMethodChannel *self, FlMethodChannelMethodCallHandler handler, gpointer user_data, GDestroyNotify destroy_notify)
static void fl_mouse_cursor_channel_init(FlMouseCursorChannel *self)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
const uint8_t uint32_t uint32_t GError ** error
G_MODULE_EXPORT FlValue * fl_method_call_get_args(FlMethodCall *self)
FlMethodChannel * channel
static void fl_mouse_cursor_channel_class_init(FlMouseCursorChannelClass *klass)