Top |
gboolean | nimf_engine_filter_event () |
void | nimf_engine_reset () |
void | nimf_engine_focus_in () |
void | nimf_engine_focus_out () |
void | nimf_engine_set_surrounding () |
gboolean | nimf_engine_get_surrounding () |
void | nimf_engine_status_changed () |
void | nimf_engine_set_method () |
void | nimf_engine_emit_preedit_start () |
void | nimf_engine_emit_preedit_changed () |
void | nimf_engine_emit_preedit_end () |
void | nimf_engine_emit_commit () |
gboolean | nimf_engine_emit_retrieve_surrounding () |
gboolean | nimf_engine_emit_delete_surrounding () |
void | nimf_engine_emit_beep () |
const gchar * | nimf_engine_get_id () |
const gchar * | nimf_engine_get_icon_name () |
NimfCandidatable * | nimf_engine_get_candidatable () |
gboolean nimf_engine_filter_event (NimfEngine *engine
,NimfServiceIC *ic
,NimfEvent *event
);
Let the language engine handle the event.
void nimf_engine_reset (NimfEngine *engine
,NimfServiceIC *ic
);
Resets the engine
.
void nimf_engine_focus_in (NimfEngine *engine
,NimfServiceIC *ic
);
Notifies the language engine that the caller has gained focus.
void nimf_engine_focus_out (NimfEngine *engine
,NimfServiceIC *ic
);
Notifies the language engine that the caller has lost focus.
void nimf_engine_set_surrounding (NimfEngine *engine
,const char *text
,gint len
,gint cursor_index
);
Sets surrounding text in engine
. This function is expected to be
called in response to nimf_engine_get_surrounding()
.
gboolean nimf_engine_get_surrounding (NimfEngine *engine
,NimfServiceIC *ic
,gchar **text
,gint *cursor_index
);
This function internally calls nimf_engine_emit_retrieve_surrounding()
.
Gets surrounding text from the caller of nimf_im_set_surrounding()
,
if available.
engine |
||
ic |
a NimfServiceIC associated with |
|
text |
location to store surrounding text. |
[out][transfer full] |
cursor_index |
location to store cursor index. |
[out][transfer full] |
void
nimf_engine_status_changed (NimfEngine *engine
);
Notifies that the status of the engine
has changed.
void nimf_engine_set_method (NimfEngine *engine
,const gchar *method_id
);
The engine may provide multiple input methods. Sets an input method by
method_id
void nimf_engine_emit_preedit_start (NimfEngine *engine
,NimfServiceIC *ic
);
Emits the “preedit-start” signal.
void nimf_engine_emit_preedit_changed (NimfEngine *engine
,NimfServiceIC *ic
,const gchar *preedit_string
,NimfPreeditAttr **attrs
,gint cursor_pos
);
Emits the “preedit-changed” signal.
engine |
||
ic |
a NimfServiceIC associated with |
|
preedit_string |
preedit string |
|
attrs |
NimfPreeditAttr array |
|
cursor_pos |
cursor position within |
void nimf_engine_emit_preedit_end (NimfEngine *engine
,NimfServiceIC *ic
);
Emits the “preedit-end” signal.
void nimf_engine_emit_commit (NimfEngine *engine
,NimfServiceIC *ic
,gchar const *text
);
Emits the “commit” signal.
gboolean nimf_engine_emit_retrieve_surrounding (NimfEngine *engine
,NimfServiceIC *ic
);
Emits the “retrieve-surrounding” signal.
gboolean nimf_engine_emit_delete_surrounding (NimfEngine *engine
,NimfServiceIC *ic
,gint offset
,gint n_chars
);
Emits the “delete-surrounding” signal.
engine |
||
ic |
a NimfServiceIC associated with |
|
offset |
the character offset from the cursor position of the text to be deleted. A negative value indicates a position before the cursor. |
|
n_chars |
the number of characters to be deleted |
void nimf_engine_emit_beep (NimfEngine *engine
,NimfServiceIC *ic
);
Emits the “beep” signal.
NimfCandidatable *
nimf_engine_get_candidatable (NimfEngine *engine
);
struct NimfEngineClass { /* Virtual functions */ gboolean (* filter_event) (NimfEngine *engine, NimfServiceIC *ic, NimfEvent *event); void (* reset) (NimfEngine *engine, NimfServiceIC *ic); void (* focus_in) (NimfEngine *engine, NimfServiceIC *ic); void (* focus_out) (NimfEngine *engine, NimfServiceIC *ic); void (* set_method) (NimfEngine *engine, const gchar *method_id); /* candidate */ gboolean (* candidate_page_up) (NimfEngine *engine, NimfServiceIC *ic); gboolean (* candidate_page_down) (NimfEngine *engine, NimfServiceIC *ic); void (* candidate_clicked) (NimfEngine *engine, NimfServiceIC *ic, gchar *text, gint index); void (* candidate_scrolled) (NimfEngine *engine, NimfServiceIC *ic, gdouble value); /* info */ const gchar * (* get_id) (NimfEngine *engine); const gchar * (* get_icon_name) (NimfEngine *engine); };
If the language engine consumes the event, returns |
||
Resets the language engine. |
||
Called via |
||
Called via |
||
Sets the method in the language engine. |
||
handler when candidate page up |
||
handler when candidate page down |
||
handler when candidate clicked |
||
handler when candidate scrolled |
||
Gets the language engine id. |
||
Gets the language engine name. |