Top | ![]() |
![]() |
![]() |
![]() |
gboolean | auto-correct | Read / Write |
KkcCandidateList * | candidates | Read |
KkcDictionaryList * | dictionaries | Read / Write |
gchar * | input | Read |
gint | input-cursor-pos | Read |
guint | input-cursor-width | Read |
KkcInputMode | input-mode | Read / Write |
KkcKeyEventFilter * | key-event-filter | Read |
KkcPunctuationStyle | punctuation-style | Read / Write |
KkcSegmentList * | segments | Read |
KkcRule * | typing-rule | Read / Write |
void kkc_context_set_selection_text (KkcContext *self
,const gchar *text
);
Set the current selection text.
gboolean kkc_context_process_key_events (KkcContext *self
,const gchar *keyseq
,GError **error
);
Pass key events (separated by spaces) to the context.
This function is rarely used in programs but in unit tests.
self |
the KkcContext instance |
|
keyseq |
. a string representing key events, separated by " " . |
[in] |
error |
location to store the error occuring, or |
[error-domains KkcKeyEventFormatError] |
gboolean kkc_context_process_key_event (KkcContext *self
,KkcKeyEvent *key
);
Pass one key event to the context.
gboolean
kkc_context_has_output (KkcContext *self
);
Check if there is pending output
gchar *
kkc_context_peek_output (KkcContext *self
);
Peek (retrieve, but not remove) the current output string.
gchar *
kkc_context_poll_output (KkcContext *self
);
Poll (retrieve and remove) the current output string.
void
kkc_context_clear_output (KkcContext *self
);
Clear the output buffer.
KkcDictionaryList *
kkc_context_get_dictionaries (KkcContext *self
);
Get and return the current value of the "dictionaries" property.
Dictionaries.
void kkc_context_set_dictionaries (KkcContext *self
,KkcDictionaryList *value
);
Set the value of the "dictionaries" property to value
.
Dictionaries.
self |
the KkcContext instance to modify |
|
value |
the new value of the "dictionaries" property |
KkcCandidateList *
kkc_context_get_candidates (KkcContext *self
);
Get and return the current value of the "candidates" property.
Current candidates.
KkcSegmentList *
kkc_context_get_segments (KkcContext *self
);
Get and return the current value of the "segments" property.
Current segments.
gchar *
kkc_context_get_input (KkcContext *self
);
Get and return the current value of the "input" property.
Current input string.
gint
kkc_context_get_input_cursor_pos (KkcContext *self
);
Get and return the current value of the "input-cursor-pos" property.
Current cursor position in input string.
guint
kkc_context_get_input_cursor_width (KkcContext *self
);
Get and return the current value of the "input-cursor-width" property.
Current cursor width in input string.
KkcInputMode
kkc_context_get_input_mode (KkcContext *self
);
Get and return the current value of the "input-mode" property.
Current input mode.
void kkc_context_set_input_mode (KkcContext *self
,KkcInputMode value
);
Set the value of the "input-mode" property to value
.
Current input mode.
KkcPunctuationStyle
kkc_context_get_punctuation_style (KkcContext *self
);
Get and return the current value of the "punctuation-style" property.
Punctuation style used in romaji-to-kana conversion.
void kkc_context_set_punctuation_style (KkcContext *self
,KkcPunctuationStyle value
);
Set the value of the "punctuation-style" property to value
.
Punctuation style used in romaji-to-kana conversion.
self |
the KkcContext instance to modify |
|
value |
the new value of the "punctuation-style" property |
gboolean
kkc_context_get_auto_correct (KkcContext *self
);
Get and return the current value of the "auto-correct" property.
Flag to indicate if romaji-to-kana conversion is auto-corrected.
void kkc_context_set_auto_correct (KkcContext *self
,gboolean value
);
Set the value of the "auto-correct" property to value
.
Flag to indicate if romaji-to-kana conversion is auto-corrected.
self |
the KkcContext instance to modify |
|
value |
the new value of the "auto-correct" property |
KkcRule *
kkc_context_get_typing_rule (KkcContext *self
);
Get and return the current value of the "typing-rule" property.
The name of typing rule.
void kkc_context_set_typing_rule (KkcContext *self
,KkcRule *value
);
Set the value of the "typing-rule" property to value
.
The name of typing rule.
KkcKeyEventFilter *
kkc_context_get_key_event_filter (KkcContext *self
);
Get and return the current value of the "key-event-filter" property.
Filter which runs before process_key_event.
This is particularly useful for NICOLA.
struct KkcContextClass { GObjectClass parent_class; };
The class structure for KKC_TYPE_CONTEXT
. All the fields in this structure are private and should never be accessed directly.
“auto-correct”
property “auto-correct” gboolean
Flag to indicate if romaji-to-kana conversion is auto-corrected.
Flags: Read / Write
Default value: FALSE
“input-cursor-pos”
property “input-cursor-pos” gint
Current cursor position in input string.
Flags: Read
Default value: 0
“input-cursor-width”
property “input-cursor-width” guint
Current cursor width in input string.
Flags: Read
Default value: 0
“input-mode”
property“input-mode” KkcInputMode
Current input mode.
Flags: Read / Write
Default value: KKC_INPUT_MODE_HIRAGANA
“key-event-filter”
property“key-event-filter” KkcKeyEventFilter *
Filter which runs before process_key_event.
This is particularly useful for NICOLA.
See also: KkcNicolaKeyEventFilter
Flags: Read
“punctuation-style”
property“punctuation-style” KkcPunctuationStyle
Punctuation style used in romaji-to-kana conversion.
Flags: Read / Write
Default value: KKC_PUNCTUATION_STYLE_JA_JA
“request-selection-text”
signalvoid user_function (KkcContext *context, gpointer user_data)
context |
the KkcContext instance that received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last