Flutter Linux Embedder
fl_keyboard_view_delegate.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_VIEW_DELEGATE_H_
6
#define FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_VIEW_DELEGATE_H_
7
8
#include <gdk/gdk.h>
9
#include <cinttypes>
10
#include <functional>
11
#include <memory>
12
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
"
16
17
G_BEGIN_DECLS
18
19
G_DECLARE_INTERFACE
(FlKeyboardViewDelegate,
20
fl_keyboard_view_delegate,
21
FL
,
22
KEYBOARD_VIEW_DELEGATE,
23
GObject);
24
25
/**
26
* FlKeyboardViewDelegate:
27
*
28
* An interface for a class that provides `FlKeyboardHandler` with
29
* platform-related features.
30
*
31
* This interface is typically implemented by `FlView`.
32
*/
33
34
struct
_FlKeyboardViewDelegateInterface
{
35
GTypeInterface
g_iface
;
36
37
gboolean (*
text_filter_key_press
)(FlKeyboardViewDelegate* delegate,
38
FlKeyEvent* event);
39
};
40
41
/**
42
* fl_keyboard_view_delegate_text_filter_key_press:
43
*
44
* Handles `FlKeyboardHandler`'s request to check if the GTK text input IM
45
* filter would like to handle a GDK event.
46
*
47
* The ownership of the `event` is kept by the keyboard handler.
48
*/
49
gboolean
fl_keyboard_view_delegate_text_filter_key_press
(
50
FlKeyboardViewDelegate* delegate,
51
FlKeyEvent* event);
52
53
G_END_DECLS
54
55
#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_KEYBOARD_VIEW_DELEGATE_H_
_FlKeyboardViewDelegateInterface::text_filter_key_press
gboolean(* text_filter_key_press)(FlKeyboardViewDelegate *delegate, FlKeyEvent *event)
Definition:
fl_keyboard_view_delegate.h:37
G_DECLARE_INTERFACE
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlKeyboardViewDelegate, fl_keyboard_view_delegate, FL, KEYBOARD_VIEW_DELEGATE, GObject)
_FlKeyboardViewDelegateInterface::g_iface
GTypeInterface g_iface
Definition:
fl_keyboard_view_delegate.h:35
fl_binary_messenger.h
FL
FL
Definition:
fl_binary_messenger.cc:27
_FlKeyboardViewDelegateInterface
Definition:
fl_keyboard_view_delegate.h:34
fl_keyboard_view_delegate_text_filter_key_press
gboolean fl_keyboard_view_delegate_text_filter_key_press(FlKeyboardViewDelegate *delegate, FlKeyEvent *event)
Definition:
fl_keyboard_view_delegate.cc:14
fl_key_event.h
shell
platform
linux
fl_keyboard_view_delegate.h
Generated by
1.8.17