Top | ![]() |
![]() |
![]() |
![]() |
GStrv | auto-start-henkan-keywords | Read / Write |
SkkCandidateList * | candidates | Read |
gboolean | egg-like-newline | Read / Write |
SkkInputMode | input-mode | Read / Write |
SkkKeyEventFilter * | key-event-filter | Read |
SkkPeriodStyle | period-style | Read / Write |
gchar * | preedit | Read |
SkkRule * | typing-rule | Read / Write |
gboolean | delete-surrounding-text | Run Last |
void | request-selection-text | Run Last |
gboolean | retrieve-surrounding-text | Run Last |
#define | SKK_TYPE_CONTEXT |
struct | SkkContext |
struct | SkkContextClass |
enum | SkkInputMode |
void skk_context_add_dictionary (SkkContext *self
,SkkDict *dict
);
Register dictionary.
Since: 0.0.8
void skk_context_remove_dictionary (SkkContext *self
,SkkDict *dict
);
Unregister dictionary.
Since: 0.0.8
void skk_context_set_selection_text (SkkContext *self
,const gchar *text
);
Set the current selection text.
gboolean skk_context_process_key_events (SkkContext *self
,const gchar *keyseq
);
Pass key events (separated by spaces) to the context.
This function is rarely used in programs but in unit tests.
self |
the SkkContext instance |
|
keyseq |
. a string representing key events, separated by " " . |
[in] |
gboolean skk_context_process_key_event (SkkContext *self
,SkkKeyEvent *key
);
Pass one key event to the context.
gchar *
skk_context_get_output (SkkContext *self
);
This is replaced with skk_context_poll_output()
.
gchar *
skk_context_peek_output (SkkContext *self
);
Peek (retrieve, but not remove) the current output string.
Since: 0.0.6
gchar *
skk_context_poll_output (SkkContext *self
);
Poll (retrieve and remove) the current output string.
Since: 0.0.6
void
skk_context_clear_output (SkkContext *self
);
Clear the output buffer.
Since: 0.0.6
void skk_context_get_preedit_underline (SkkContext *self
,guint *offset
,guint *nchars
);
Get underlined range of preedit.
self |
the SkkContext instance |
|
offset |
. starting offset (in chars) of underline . |
[out] |
nchars |
. number of characters to be underlined . |
[out] |
Since: 0.0.6
void skk_context_save_dictionaries (SkkContext *self
,GError **error
);
Save dictionaries on to disk.
self |
the SkkContext instance |
|
error |
location to store the error occurring, or |
SkkContext * skk_context_new (SkkDict **dictionaries
,gint dictionaries_length1
);
Create a new Context.
SkkDict ** skk_context_get_dictionaries (SkkContext *self
,gint *result_length1
);
Get and return the current value of the "dictionaries" property.
Dictionaries.
void skk_context_set_dictionaries (SkkContext *self
,SkkDict **value
,gint value_length1
);
Set the value of the "dictionaries" property to value
.
Dictionaries.
self |
the SkkContext instance to modify |
|
value |
the new value of the "dictionaries" property |
SkkCandidateList *
skk_context_get_candidates (SkkContext *self
);
Get and return the current value of the "candidates" property.
Current candidates.
SkkInputMode
skk_context_get_input_mode (SkkContext *self
);
Get and return the current value of the "input-mode" property.
Current input mode.
void skk_context_set_input_mode (SkkContext *self
,SkkInputMode value
);
Set the value of the "input-mode" property to value
.
Current input mode.
gchar ** skk_context_get_auto_start_henkan_keywords (SkkContext *self
,gint *result_length1
);
Get and return the current value of the "auto-start-henkan-keywords" property.
Array of strings which triggers automatic conversion.
void skk_context_set_auto_start_henkan_keywords (SkkContext *self
,gchar **value
,gint value_length1
);
Set the value of the "auto-start-henkan-keywords" property to value
.
Array of strings which triggers automatic conversion.
self |
the SkkContext instance to modify |
|
value |
the new value of the "auto-start-henkan-keywords" property |
gboolean
skk_context_get_egg_like_newline (SkkContext *self
);
Get and return the current value of the "egg-like-newline" property.
Flag to indicate whether or not "\n" is consumed on commit.
void skk_context_set_egg_like_newline (SkkContext *self
,gboolean value
);
Set the value of the "egg-like-newline" property to value
.
Flag to indicate whether or not "\n" is consumed on commit.
self |
the SkkContext instance to modify |
|
value |
the new value of the "egg-like-newline" property |
SkkPeriodStyle
skk_context_get_period_style (SkkContext *self
);
Get and return the current value of the "period-style" property.
Period style used in romaji-to-kana conversion.
void skk_context_set_period_style (SkkContext *self
,SkkPeriodStyle value
);
Set the value of the "period-style" property to value
.
Period style used in romaji-to-kana conversion.
self |
the SkkContext instance to modify |
|
value |
the new value of the "period-style" property |
SkkRule *
skk_context_get_typing_rule (SkkContext *self
);
Get and return the current value of the "typing-rule" property.
The name of typing rule.
void skk_context_set_typing_rule (SkkContext *self
,SkkRule *value
);
Set the value of the "typing-rule" property to value
.
The name of typing rule.
SkkKeyEventFilter *
skk_context_get_key_event_filter (SkkContext *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.
const gchar *
skk_context_get_preedit (SkkContext *self
);
Get and return the current value of the "preedit" property.
Current preedit string.
struct SkkContext;
Main entry point of libskk.
Context represents an input context with support for SKK kana-kanji conversion method.
struct SkkContextClass { GObjectClass parent_class; };
The class structure for SKK_TYPE_CONTEXT
. All the fields in this structure are private and should never be accessed directly.
“auto-start-henkan-keywords”
property “auto-start-henkan-keywords” GStrv
Array of strings which triggers automatic conversion.
Owner: SkkContext
Flags: Read / Write
“candidates”
property“candidates” SkkCandidateList *
Current candidates.
Owner: SkkContext
Flags: Read
“egg-like-newline”
property “egg-like-newline” gboolean
Flag to indicate whether or not "\n" is consumed on commit.
Owner: SkkContext
Flags: Read / Write
Default value: FALSE
“input-mode”
property“input-mode” SkkInputMode
Current input mode.
Owner: SkkContext
Flags: Read / Write
Default value: SKK_INPUT_MODE_HIRAGANA
“key-event-filter”
property“key-event-filter” SkkKeyEventFilter *
Filter which runs before process_key_event.
This is particularly useful for NICOLA.
See also: SkkNicolaKeyEventFilter
Owner: SkkContext
Flags: Read
“period-style”
property“period-style” SkkPeriodStyle
Period style used in romaji-to-kana conversion.
Owner: SkkContext
Flags: Read / Write
Default value: SKK_PERIOD_STYLE_JA_JA
“preedit”
property “preedit” gchar *
Current preedit string.
Owner: SkkContext
Flags: Read
Default value: NULL
“typing-rule”
property“typing-rule” SkkRule *
The name of typing rule.
Owner: SkkContext
Flags: Read / Write
“delete-surrounding-text”
signalgboolean user_function (SkkContext *context, gint offset, guint nchars, gpointer user_data)
Signal emitted when the context requests deletion of surrounding-text.
context |
the SkkContext instance that received the signal |
|
offset |
. character offset from the cursor position. |
|
nchars |
. number of characters to delete. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“request-selection-text”
signalvoid user_function (SkkContext *context, gpointer user_data)
context |
the SkkContext instance that received the signal |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“retrieve-surrounding-text”
signalgboolean user_function (SkkContext *context, gpointer text, gpointer cursor_pos, gpointer user_data)
Signal emitted when the context requires surrounding-text.
context |
the SkkContext instance that received the signal |
|
text |
. surrounding text |
|
cursor_pos |
. cursor position in text |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last