Flutter Engine
 
Loading...
Searching...
No Matches
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
9
10G_BEGIN_DECLS
11
12G_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
25typedef struct {
26 void (*activate_system_cursor)(const gchar* kind, gpointer user_data);
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 */
40FlMouseCursorChannel* fl_mouse_cursor_channel_new(
41 FlBinaryMessenger* messenger,
43 gpointer user_data);
44
45G_END_DECLS
46
47#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_MOUSE_CURSOR_CHANNEL_H_
static FlMethodResponse * activate_system_cursor(FlMouseCursorChannel *self, FlValue *args)
FlMouseCursorChannel * fl_mouse_cursor_channel_new(FlBinaryMessenger *messenger, FlMouseCursorChannelVTable *vtable, gpointer user_data)
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlMouseCursorChannel, fl_mouse_cursor_channel, FL, MOUSE_CURSOR_CHANNEL, GObject)