| Flutter Linux Embedder |

fl_keyboard_view_delegate.cc
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 #include "flutter/shell/platform/linux/fl_keyboard_view_delegate.h"
6
7 G_DEFINE_INTERFACE(FlKeyboardViewDelegate,
8 fl_keyboard_view_delegate,
9 G_TYPE_OBJECT)
10
11 static void fl_keyboard_view_delegate_default_init(
12 FlKeyboardViewDelegateInterface* iface) {}
13
14 gboolean fl_keyboard_view_delegate_text_filter_key_press(
15 FlKeyboardViewDelegate* self,
16 FlKeyEvent* event) {
17 g_return_val_if_fail(FL_IS_KEYBOARD_VIEW_DELEGATE(self), false);
18 g_return_val_if_fail(event != nullptr, false);
19
20 return FL_KEYBOARD_VIEW_DELEGATE_GET_IFACE(self)->text_filter_key_press(
21 self, event);
22 }
G_DEFINE_INTERFACE
G_DEFINE_INTERFACE(FlKeyboardViewDelegate, fl_keyboard_view_delegate, G_TYPE_OBJECT) static void fl_keyboard_view_delegate_default_init(FlKeyboardViewDelegateInterface *iface)
Definition: fl_keyboard_view_delegate.cc:7
fl_keyboard_view_delegate_text_filter_key_press
gboolean fl_keyboard_view_delegate_text_filter_key_press(FlKeyboardViewDelegate *self, FlKeyEvent *event)
Definition: fl_keyboard_view_delegate.cc:14
fl_keyboard_view_delegate.h