| Flutter Linux Embedder |

fl_keyboard_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_KEYBOARD_CHANNEL_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_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(FlKeyboardChannel,
13 fl_keyboard_channel,
14 FL,
15 KEYBOARD_CHANNEL,
16 GObject);
17
18 /**
19 * FlKeyboardChannel:
20 *
21 * #FlKeyboardChannel is a channel that implements the shell side
22 * of SystemChannels.keyboard from the Flutter services library.
23 */
24
25 typedef struct {
26 FlValue* (*get_keyboard_state)(gpointer user_data);
27 } FlKeyboardChannelVTable;
28
29 /**
30 * fl_keyboard_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.keyboard from the
36 * Flutter services library.
37 *
38 * Returns: a new #FlKeyboardChannel
39 */
40 FlKeyboardChannel* fl_keyboard_channel_new(FlBinaryMessenger* messenger,
41 FlKeyboardChannelVTable* vtable,
42 gpointer user_data);
43
44 G_END_DECLS
45
46 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_CHANNEL_H_
FL
FL
Definition: fl_binary_messenger.cc:27
fl_binary_messenger.h
user_data
G_BEGIN_DECLS G_MODULE_EXPORT FlValue gpointer user_data
Definition: fl_event_channel.h:90
fl_keyboard_channel_new
FlKeyboardChannel * fl_keyboard_channel_new(FlBinaryMessenger *messenger, FlKeyboardChannelVTable *vtable, gpointer user_data)
Definition: fl_keyboard_channel.cc:65
G_DECLARE_FINAL_TYPE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlKeyboardChannel, fl_keyboard_channel, FL, KEYBOARD_CHANNEL, GObject)
FlValue
typedefG_BEGIN_DECLS struct _FlValue FlValue
Definition: fl_value.h:42
FlKeyboardChannelVTable
Definition: fl_keyboard_channel.h:25