Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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
12G_BEGIN_DECLS
13
14G_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 `FlTextInputPlugin` 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
46G_END_DECLS
47
48#endif // FLUTTER_SHELL_PLATFORM_LINUX_FL_TEXT_INPUT_VIEW_DELEGATE_H_
G_BEGIN_DECLS G_DECLARE_INTERFACE(FlTextInputViewDelegate, fl_text_input_view_delegate, FL, TEXT_INPUT_VIEW_DELEGATE, GObject)
void fl_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)
void(* translate_coordinates)(FlTextInputViewDelegate *delegate, gint view_x, gint view_y, gint *window_x, gint *window_y)