| Flutter Linux Embedder |

fl_mouse_cursor_channel.h
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_MOUSE_CURSOR_CHANNEL_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_MOUSE_CURSOR_CHANNEL_H_
7
8 #include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
9
10 G_BEGIN_DECLS
11
12 G_DECLARE_FINAL_TYPE(FlMouseCursorChannel,
13 fl_mouse_cursor_channel,
14 FL,
15 MOUSE_CURSOR_CHANNEL,
16 GObject);
17
18 /**
19 * FlMouseCursorChannel:
20 *
21 * #FlMouseCursorChannel is a cursor channel that implements the shell
22 * side of SystemChannels.mouseCursor from the Flutter services library.
23 */
24
25 typedef struct {
26 void (*activate_system_cursor)(const gchar* kind, gpointer user_data);
27 } FlMouseCursorChannelVTable;
28
29 /**
30 * fl_mouse_cursor_channel_new:
31 * @messenger: an #FlBinaryMessenger.
32 * @vtable: callbacks for incoming method calls.
33 * @user_data: data to pass in callbacks.
34 *
35 * Creates a new channel that implements SystemChannels.mouseCursor from the
36 * Flutter services library.
37 *
38 * Returns: a new #FlMouseCursorChannel.
39 */
40 FlMouseCursorChannel* fl_mouse_cursor_channel_new(
41 FlBinaryMessenger* messenger,
42 FlMouseCursorChannelVTable* vtable,
43 gpointer user_data);
44
45 G_END_DECLS
46
47 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_MOUSE_CURSOR_CHANNEL_H_
user_data
const char FlTextDirection FlAssertiveness gpointer user_data
Definition: fl_accessibility_handler.cc:24
FL
FL
Definition: fl_binary_messenger.cc:27
fl_binary_messenger.h
activate_system_cursor
static FlMethodResponse * activate_system_cursor(FlMouseCursorChannel *self, FlValue *args)
Definition: fl_mouse_cursor_channel.cc:30
fl_mouse_cursor_channel_new
FlMouseCursorChannel * fl_mouse_cursor_channel_new(FlBinaryMessenger *messenger, FlMouseCursorChannelVTable *vtable, gpointer user_data)
Definition: fl_mouse_cursor_channel.cc:85
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlMouseCursorChannel, fl_mouse_cursor_channel, FL, MOUSE_CURSOR_CHANNEL, GObject)
FlMouseCursorChannelVTable
Definition: fl_mouse_cursor_channel.h:25