71
79
GType ibus_input_context_get_type (void);
82
* ibus_input_context_new:
83
* @path: The path to the object that emitting the signal.
84
* @connection: An IBusConnection.
85
* @returns: A newly allocated IBusInputContext.
87
* New an IBusInputContext.
73
90
*ibus_input_context_new (const gchar *path,
74
91
IBusConnection *connection);
93
* ibus_input_context_process_key_event:
94
* @context: An IBusInputContext.
95
* @keyval: Key symbol of a key event.
96
* @keycode: Keycode of a key event.
97
* @state: Key modifier flags.
98
* @returns: TRUE for successfully process the key; FALSE otherwise.
100
* Pass the key event to input method engine.
102
* Key symbols are characters/symbols produced by key press, for example,
103
* pressing "s" generates key symbol "s"; pressing shift-"s" generates key symbol "S".
104
* Same key on keyboard may produce different key symbols on different keyboard layout.
105
* e.g., "s" key on QWERTY keyboard produces "o" in DVORAK layout.
107
* Unlike key symbol, keycode is only determined by the location of the key, and
108
* irrelevant of the keyboard layout.
110
* Briefly speaking, input methods that expect certain keyboard layout should use
111
* keycode; otherwise keyval is sufficient.
112
* For example, Chewing, Cangjie, Wubi expect an en-US QWERTY keyboard, these should
113
* use keycode; while pinyin can rely on keyval only, as it is less sensitive to
114
* the keyboard layout change, DVORAK users can still use DVORAK layout to input pinyin.
116
* Use ibus_keymap_lookup_keysym() to convert keycode to keysym in given keyboard layout.
118
* @see_also: #IBusEngine::process-key-event
75
120
gboolean ibus_input_context_process_key_event
76
121
(IBusInputContext *context,
127
* ibus_input_context_set_cursor_location:
128
* @context: An IBusInputContext.
129
* @x: X coordinate of the cursor.
130
* @y: Y coordinate of the cursor.
131
* @w: Width of the cursor.
132
* @h: Height of the cursor.
134
* Set the cursor location of IBus input context.
136
* @see_also: #IBusEngine::set-cursor-location
79
138
void ibus_input_context_set_cursor_location
80
139
(IBusInputContext *context,
145
* ibus_input_context_set_capabilities:
146
* @context: An IBusInputContext.
147
* @capabilities: Capabilities flags of IBusEngine, see #IBusCapabilite
149
* Set the capabilities flags of client application.
151
* @see_also: #IBusEngine::set-capabilities
85
153
void ibus_input_context_set_capabilities
86
154
(IBusInputContext *context,
155
guint32 capabilities);
158
* ibus_input_context_focus_in:
159
* @context: An IBusInputContext.
161
* Invoked when the client application get focus.
163
* @see_also: #IBusEngine::focus_in.
88
165
void ibus_input_context_focus_in (IBusInputContext *context);
168
* ibus_input_context_focus_out:
169
* @context: An IBusInputContext.
171
* Invoked when the client application get focus.
173
* @see_also: #IBusEngine::focus_out.
89
175
void ibus_input_context_focus_out (IBusInputContext *context);
179
* ibus_input_context_reset:
180
* @context: An IBusInputContext.
182
* Invoked when the IME is reset.
184
* @see_also: #IBusEngine::reset
90
186
void ibus_input_context_reset (IBusInputContext *context);
189
* ibus_input_context_enable:
190
* @context: An IBusInputContext.
192
* Invoked when the IME is enabled, either by IME switch hotkey or select from the menu.
194
* @see_also: #IBusEngine::enable
91
196
void ibus_input_context_enable (IBusInputContext *context);
199
* ibus_input_context_disable:
200
* @context: An IBusInputContext.
202
* Invoked when the IME is disabled, either by IME switch hotkey or select from the menu.
204
* @see_also: #IBusEngine::disable
92
206
void ibus_input_context_disable (IBusInputContext *context);