| Flutter Linux Embedder |

fl_text_input_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_text_input_view_delegate.h"
6
7 G_DEFINE_INTERFACE(FlTextInputViewDelegate,
8 fl_text_input_view_delegate,
9 G_TYPE_OBJECT)
10
11 static void fl_text_input_view_delegate_default_init(
12 FlTextInputViewDelegateInterface* iface) {}
13
14 void fl_text_input_view_delegate_translate_coordinates(
15 FlTextInputViewDelegate* self,
16 gint view_x,
17 gint view_y,
18 gint* window_x,
19 gint* window_y) {
20 g_return_if_fail(FL_IS_TEXT_INPUT_VIEW_DELEGATE(self));
21
22 FL_TEXT_INPUT_VIEW_DELEGATE_GET_IFACE(self)->translate_coordinates(
23 self, view_x, view_y, window_x, window_y);
24 }
fl_text_input_view_delegate_translate_coordinates
void fl_text_input_view_delegate_translate_coordinates(FlTextInputViewDelegate *self, gint view_x, gint view_y, gint *window_x, gint *window_y)
Definition: fl_text_input_view_delegate.cc:14
fl_text_input_view_delegate.h
G_DEFINE_INTERFACE
G_DEFINE_INTERFACE(FlTextInputViewDelegate, fl_text_input_view_delegate, G_TYPE_OBJECT) static void fl_text_input_view_delegate_default_init(FlTextInputViewDelegateInterface *iface)
Definition: fl_text_input_view_delegate.cc:7