5#ifndef FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_VIEW_DELEGATE_H_
6#define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_VIEW_DELEGATE_H_
13#include "flutter/shell/platform/embedder/embedder.h"
14#include "flutter/shell/platform/linux/fl_key_event.h"
15#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
22 fl_keyboard_view_delegate,
24 KEYBOARD_VIEW_DELEGATE,
47 FlBinaryMessenger* (*get_messenger)(FlKeyboardViewDelegate* delegate);
50 std::unique_ptr<FlKeyEvent>
event);
55 guint (*
lookup_key)(FlKeyboardViewDelegate* view_delegate,
56 const GdkKeymapKey*
key);
58 GHashTable* (*get_keyboard_state)(FlKeyboardViewDelegate* delegate);
87 FlKeyboardViewDelegate* delegate,
99 FlKeyboardViewDelegate* delegate);
111 FlKeyboardViewDelegate* delegate,
112 std::unique_ptr<FlKeyEvent>
event);
115 FlKeyboardViewDelegate* delegate,
119 const GdkKeymapKey*
key);
129 FlKeyboardViewDelegate* delegate);
void(* FlutterKeyEventCallback)(bool, void *)
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
guint fl_keyboard_view_delegate_lookup_key(FlKeyboardViewDelegate *delegate, const GdkKeymapKey *key)
void fl_keyboard_view_delegate_send_key_event(FlKeyboardViewDelegate *delegate, const FlutterKeyEvent *event, FlutterKeyEventCallback callback, void *user_data)
void fl_keyboard_view_delegate_redispatch_event(FlKeyboardViewDelegate *delegate, std::unique_ptr< FlKeyEvent > event)
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlKeyboardViewDelegate, fl_keyboard_view_delegate, FL, KEYBOARD_VIEW_DELEGATE, GObject)
FlBinaryMessenger * fl_keyboard_view_delegate_get_messenger(FlKeyboardViewDelegate *delegate)
GHashTable * fl_keyboard_view_delegate_get_keyboard_state(FlKeyboardViewDelegate *delegate)
gboolean fl_keyboard_view_delegate_text_filter_key_press(FlKeyboardViewDelegate *delegate, FlKeyEvent *event)
std::function< void()> KeyboardLayoutNotifier
void fl_keyboard_view_delegate_subscribe_to_layout_change(FlKeyboardViewDelegate *delegate, KeyboardLayoutNotifier notifier)
Dart_NativeFunction function
guint(* lookup_key)(FlKeyboardViewDelegate *view_delegate, const GdkKeymapKey *key)
gboolean(* text_filter_key_press)(FlKeyboardViewDelegate *delegate, FlKeyEvent *event)
void(* subscribe_to_layout_change)(FlKeyboardViewDelegate *delegate, KeyboardLayoutNotifier notifier)
void(* send_key_event)(FlKeyboardViewDelegate *delegate, const FlutterKeyEvent *event, FlutterKeyEventCallback callback, void *user_data)
void(* redispatch_event)(FlKeyboardViewDelegate *delegate, std::unique_ptr< FlKeyEvent > event)