Flutter Linux Embedder
fl_accessibility_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_ACCESSIBILITY_CHANNEL_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBILITY_CHANNEL_H_
7 
9 
10 G_BEGIN_DECLS
11 
12 G_DECLARE_FINAL_TYPE(FlAccessibilityChannel,
13  fl_accessibility_channel,
14  FL,
15  ACCESSIBILITY_CHANNEL,
16  GObject);
17 
18 // A direction in which text flows.
19 typedef enum {
23 
24 // Assertiveness level of an accessibility announcement.
25 typedef enum {
29 
30 /**
31  * FlAccessibilityChannel:
32  *
33  * #FlAccessibilityChannel is a channel that implements the shell side
34  * of SystemChannels.accessibility from the Flutter services library.
35  */
36 
37 typedef struct {
38  void (*send_announcement)(int64_t view_id,
39  const char* message,
42  gpointer user_data);
44 
45 /**
46  * fl_accessibility_channel_new:
47  * @messenger: an #FlBinaryMessenger
48  * @vtable: callbacks for incoming method calls.
49  * @user_data: data to pass in callbacks.
50  *
51  * Creates a new channel that handles accessibility requests from Dart.
52  *
53  * Returns: a new #FlAccessibilityChannel
54  */
55 FlAccessibilityChannel* fl_accessibility_channel_new(
56  FlBinaryMessenger* messenger,
58  gpointer user_data);
59 
60 G_END_DECLS
61 
62 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_ACCESSIBILITY_CHANNEL_H_
FlAccessibilityChannel * fl_accessibility_channel_new(FlBinaryMessenger *messenger, FlAccessibilityChannelVTable *vtable, gpointer user_data)
@ FL_TEXT_DIRECTION_LTR
@ FL_TEXT_DIRECTION_RTL
@ FL_ASSERTIVENESS_POLITE
@ FL_ASSERTIVENESS_ASSERTIVE
G_BEGIN_DECLS G_DECLARE_FINAL_TYPE(FlAccessibilityChannel, fl_accessibility_channel, FL, ACCESSIBILITY_CHANNEL, GObject)
const char * message
const char FlTextDirection text_direction
const char FlTextDirection FlAssertiveness assertiveness
const char FlTextDirection FlAssertiveness gpointer user_data
G_BEGIN_DECLS FlutterViewId view_id