Flutter Linux Embedder
fl_text_input_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_TEXT_INPUT_VIEW_DELEGATE_H_
6 #define FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXT_INPUT_VIEW_DELEGATE_H_
7 
8 #include <gdk/gdk.h>
9 
10 #include "flutter/shell/platform/embedder/embedder.h"
11 
12 G_BEGIN_DECLS
13 
14 G_DECLARE_INTERFACE(FlTextInputViewDelegate,
15  fl_text_input_view_delegate,
16  FL,
17  TEXT_INPUT_VIEW_DELEGATE,
18  GObject);
19 
20 /**
21  * FlTextInputViewDelegate:
22  *
23  * An interface for a class that provides `FlTextInputHandler` with
24  * view-related features.
25  *
26  * This interface is typically implemented by `FlView`.
27  */
28 
30  GTypeInterface g_iface;
31 
32  void (*translate_coordinates)(FlTextInputViewDelegate* delegate,
33  gint view_x,
34  gint view_y,
35  gint* window_x,
36  gint* window_y);
37 };
38 
40  FlTextInputViewDelegate* delegate,
41  gint view_x,
42  gint view_y,
43  gint* window_x,
44  gint* window_y);
45 
46 G_END_DECLS
47 
48 #endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXT_INPUT_VIEW_DELEGATE_H_
_FlTextInputViewDelegateInterface::g_iface
GTypeInterface g_iface
Definition: fl_text_input_view_delegate.h:30
fl_text_input_view_delegate_translate_coordinates
void fl_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)
Definition: fl_text_input_view_delegate.cc:14
FL
FL
Definition: fl_binary_messenger.cc:27
_FlTextInputViewDelegateInterface
Definition: fl_text_input_view_delegate.h:29
_FlTextInputViewDelegateInterface::translate_coordinates
void(* translate_coordinates)(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)
Definition: fl_text_input_view_delegate.h:32
G_DECLARE_INTERFACE
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlTextInputViewDelegate, fl_text_input_view_delegate, FL, TEXT_INPUT_VIEW_DELEGATE, GObject)