Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gtkimcontext.h
Go to the documentation of this file.
1/* GTK - The GIMP Toolkit
2 * Copyright (C) 2000 Red Hat Software
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#pragma once
19
20
21#if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
22#error "Only <gtk/gtk.h> can be included directly."
23#endif
24
25#include <gtk/gtkwidget.h>
26
27
29
30#define GTK_TYPE_IM_CONTEXT (gtk_im_context_get_type ())
31#define GTK_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContext))
32#define GTK_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IM_CONTEXT, GtkIMContextClass))
33#define GTK_IS_IM_CONTEXT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IM_CONTEXT))
34#define GTK_IS_IM_CONTEXT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IM_CONTEXT))
35#define GTK_IM_CONTEXT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IM_CONTEXT, GtkIMContextClass))
36
37
40
45
47{
48 /*< private >*/
50
51 /*< public >*/
52 /* Signals */
53 void (*preedit_start) (GtkIMContext *context);
54 void (*preedit_end) (GtkIMContext *context);
55 void (*preedit_changed) (GtkIMContext *context);
56 void (*commit) (GtkIMContext *context, const char *str);
59 int offset,
60 int n_chars);
61
62 /* Virtual functions */
64 GtkWidget *widget);
66 char **str,
67 PangoAttrList **attrs,
68 int *cursor_pos);
70 GdkEvent *event);
71 void (*focus_in) (GtkIMContext *context);
72 void (*focus_out) (GtkIMContext *context);
73 void (*reset) (GtkIMContext *context);
75 GdkRectangle *area);
76 void (*set_use_preedit) (GtkIMContext *context,
77 gboolean use_preedit);
78 void (*set_surrounding) (GtkIMContext *context,
79 const char *text,
80 int len,
81 int cursor_index);
83 char **text,
84 int *cursor_index);
86 (GtkIMContext *context,
87 const char *text,
88 int len,
89 int cursor_index,
90 int anchor_index);
92 (GtkIMContext *context,
93 char **text,
94 int *cursor_index,
95 int *anchor_index);
96
97 /*< private >*/
98 void (* activate_osk) (GtkIMContext *context);
100 GdkEvent *event);
101
102 /* Padding for future expansion */
103 void (*_gtk_reserved2) (void);
104 void (*_gtk_reserved3) (void);
105 void (*_gtk_reserved4) (void);
106};
107
110
113 GtkWidget *widget);
116 char **str,
117 PangoAttrList **attrs,
118 int *cursor_pos);
121 GdkEvent *event);
122
125 gboolean press,
126 GdkSurface *surface,
127 GdkDevice *device,
128 guint32 time,
129 guint keycode,
130 GdkModifierType state,
131 int group);
132
141 const GdkRectangle *area);
144 gboolean use_preedit);
147 const char *text,
148 int len,
149 int cursor_index);
152 char **text,
153 int *cursor_index);
156 (GtkIMContext *context,
157 const char *text,
158 int len,
159 int cursor_index,
160 int anchor_index);
163 (GtkIMContext *context,
164 char **text,
165 int *cursor_index,
166 int *anchor_index);
169 int offset,
170 int n_chars);
171
174 GdkEvent *event);
175
177
179
#define GDK_DEPRECATED_IN_4_2_FOR(f)
#define GDK_AVAILABLE_IN_4_2
#define GDK_AVAILABLE_IN_4_14
#define GDK_AVAILABLE_IN_ALL
GdkModifierType
Definition gdkenums.h:116
struct _GdkEvent GdkEvent
Definition gdkevents.h:101
struct _GdkDevice GdkDevice
Definition gdktypes.h:84
struct _GdkSurface GdkSurface
Definition gdktypes.h:91
unsigned int guint32
Definition glibconfig.h:57
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
#define G_DEFINE_AUTOPTR_CLEANUP_FUNC(TypeName, func)
Definition gmacros.h:1400
GOBJECT_AVAILABLE_IN_ALL void g_object_unref(gpointer object)
GDK_AVAILABLE_IN_4_2 gboolean gtk_im_context_get_surrounding_with_selection(GtkIMContext *context, char **text, int *cursor_index, int *anchor_index)
GDK_AVAILABLE_IN_ALL void gtk_im_context_reset(GtkIMContext *context)
GDK_AVAILABLE_IN_4_14 gboolean gtk_im_context_activate_osk(GtkIMContext *context, GdkEvent *event)
GDK_AVAILABLE_IN_ALL gboolean gtk_im_context_filter_key(GtkIMContext *context, gboolean press, GdkSurface *surface, GdkDevice *device, guint32 time, guint keycode, GdkModifierType state, int group)
gboolean gtk_im_context_get_surrounding(GtkIMContext *context, char **text, int *cursor_index)
GDK_AVAILABLE_IN_ALL GType gtk_im_context_get_type(void) G_GNUC_CONST
GDK_AVAILABLE_IN_ALL void gtk_im_context_get_preedit_string(GtkIMContext *context, char **str, PangoAttrList **attrs, int *cursor_pos)
void gtk_im_context_set_surrounding(GtkIMContext *context, const char *text, int len, int cursor_index)
GDK_AVAILABLE_IN_ALL gboolean gtk_im_context_delete_surrounding(GtkIMContext *context, int offset, int n_chars)
GDK_AVAILABLE_IN_ALL void gtk_im_context_focus_out(GtkIMContext *context)
GDK_AVAILABLE_IN_4_2 void gtk_im_context_set_surrounding_with_selection(GtkIMContext *context, const char *text, int len, int cursor_index, int anchor_index)
GDK_AVAILABLE_IN_ALL void gtk_im_context_focus_in(GtkIMContext *context)
GDK_AVAILABLE_IN_ALL gboolean gtk_im_context_filter_keypress(GtkIMContext *context, GdkEvent *event)
GDK_AVAILABLE_IN_ALL void gtk_im_context_set_use_preedit(GtkIMContext *context, gboolean use_preedit)
GDK_AVAILABLE_IN_ALL void gtk_im_context_set_client_widget(GtkIMContext *context, GtkWidget *widget)
GDK_AVAILABLE_IN_ALL void gtk_im_context_set_cursor_location(GtkIMContext *context, const GdkRectangle *area)
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
unsigned int guint
Definition gtypes.h:61
struct _PangoAttrList PangoAttrList
void(* set_cursor_location)(GtkIMContext *context, GdkRectangle *area)
void(* preedit_end)(GtkIMContext *context)
gboolean(* activate_osk_with_event)(GtkIMContext *context, GdkEvent *event)
void(* focus_out)(GtkIMContext *context)
GObjectClass parent_class
void(* get_preedit_string)(GtkIMContext *context, char **str, PangoAttrList **attrs, int *cursor_pos)
void(* set_surrounding_with_selection)(GtkIMContext *context, const char *text, int len, int cursor_index, int anchor_index)
void(* focus_in)(GtkIMContext *context)
void(* commit)(GtkIMContext *context, const char *str)
void(* _gtk_reserved3)(void)
void(* _gtk_reserved2)(void)
gboolean(* get_surrounding_with_selection)(GtkIMContext *context, char **text, int *cursor_index, int *anchor_index)
gboolean(* get_surrounding)(GtkIMContext *context, char **text, int *cursor_index)
void(* activate_osk)(GtkIMContext *context)
void(* set_surrounding)(GtkIMContext *context, const char *text, int len, int cursor_index)
void(* reset)(GtkIMContext *context)
void(* set_use_preedit)(GtkIMContext *context, gboolean use_preedit)
gboolean(* filter_keypress)(GtkIMContext *context, GdkEvent *event)
gboolean(* retrieve_surrounding)(GtkIMContext *context)
void(* preedit_start)(GtkIMContext *context)
gboolean(* delete_surrounding)(GtkIMContext *context, int offset, int n_chars)
void(* _gtk_reserved4)(void)
void(* set_client_widget)(GtkIMContext *context, GtkWidget *widget)
void(* preedit_changed)(GtkIMContext *context)
GObject parent_instance