1 /*
2  * Copyright (C) 2017,2018 Red Hat
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17  * 02111-1307, USA.
18  *
19  * Author: Carlos Garnacho <carlosg@gnome.org>
20  */
21 
22 #ifndef __CLUTTER_INPUT_METHOD_PRIVATE_H__
23 #define __CLUTTER_INPUT_METHOD_PRIVATE_H__
24 
25 ClutterInputFocus * clutter_input_method_get_focus (ClutterInputMethod *method);
26 
27 void clutter_input_method_reset               (ClutterInputMethod *method);
28 
29 void clutter_input_method_set_cursor_location (ClutterInputMethod *method,
30                                                const ClutterRect  *rect);
31 void clutter_input_method_set_surrounding     (ClutterInputMethod *method,
32                                                const gchar        *text,
33                                                guint               cursor,
34                                                guint               anchor);
35 void clutter_input_method_set_content_hints   (ClutterInputMethod           *method,
36                                                ClutterInputContentHintFlags  hints);
37 void clutter_input_method_set_content_purpose (ClutterInputMethod         *method,
38                                                ClutterInputContentPurpose  purpose);
39 void clutter_input_method_set_can_show_preedit (ClutterInputMethod *method,
40                                                 gboolean            can_show_preedit);
41 gboolean clutter_input_method_filter_key_event (ClutterInputMethod    *method,
42                                                 const ClutterKeyEvent *key);
43 
44 void clutter_input_method_toggle_input_panel (ClutterInputMethod *method);
45 
46 #endif /* __CLUTTER_INPUT_METHOD_PRIVATE_H__ */
47