WebKit2.InputMethodContext (original) (raw)
Class
WebKit2InputMethodContext
since: 2.28
Description [src]
abstract class WebKit2.InputMethodContext : GObject.Object
{
priv: WebKitInputMethodContextPrivate*
}
Base class for input method contexts.
WebKitInputMethodContext defines the interface to implement WebKit input methods. The input methods are used by WebKit, when editable content is focused, to map from key events to Unicode character strings.
An input method may consume multiple key events in sequence and finally output the composed result. This is called preediting, and an input method may provide feedback about this process by displaying the intermediate composition states as preedit text.
Available since: 2.28
Instance methods
Methods inherited from GObject (43)
Please see GObject for a full list of methods.
Properties
Signals
WebKit2.InputMethodContext::committed
Emitted when a complete input sequence has been entered by the user. This can be a single character immediately after a key press or the final result of preediting.
since: 2.28
WebKit2.InputMethodContext::preedit-changed
Emitted whenever the preedit sequence currently being entered has changed. It is also emitted at the end of a preedit sequence, in which casewebkit_input_method_context_get_preedit()
returns the empty string.
since: 2.28
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct WebKit2InputMethodContextClass {
GObjectClass parent_class;
void (* preedit_started) (
WebKitInputMethodContext* context
);
void (* preedit_changed) (
WebKitInputMethodContext* context
);
void (* preedit_finished) (
WebKitInputMethodContext* context
);
void (* committed) (
WebKitInputMethodContext* context,
const char* text
);
void (* delete_surrounding) (
WebKitInputMethodContext* context,
int offset,
guint n_chars
);
void (* set_enable_preedit) (
WebKitInputMethodContext* context,
gboolean enabled
);
void (* get_preedit) (
WebKitInputMethodContext* context,
gchar** text,
GList** underlines,
guint* cursor_offset
);
gboolean (* filter_key_event) (
WebKitInputMethodContext* context,
GdkEventKey* key_event
);
void (* notify_focus_in) (
WebKitInputMethodContext* context
);
void (* notify_focus_out) (
WebKitInputMethodContext* context
);
void (* notify_cursor_area) (
WebKitInputMethodContext* context,
int x,
int y,
int width,
int height
);
void (* notify_surrounding) (
WebKitInputMethodContext* context,
const gchar* text,
guint length,
guint cursor_index,
guint selection_index
);
void (* reset) (
WebKitInputMethodContext* context
);
void (* _webkit_reserved0) (
void
);
void (* _webkit_reserved1) (
void
);
void (* _webkit_reserved2) (
void
);
void (* _webkit_reserved3) (
void
);
void (* _webkit_reserved4) (
void
);
void (* _webkit_reserved5) (
void
);
void (* _webkit_reserved6) (
void
);
void (* _webkit_reserved7) (
void
);
}
No description available.
Class members
parent_class: GObjectClass
No description available.
preedit_started: void (* preedit_started) ( WebKitInputMethodContext* context )
No description available.
preedit_changed: void (* preedit_changed) ( WebKitInputMethodContext* context )
No description available.
preedit_finished: void (* preedit_finished) ( WebKitInputMethodContext* context )
No description available.
committed: void (* committed) ( WebKitInputMethodContext* context, const char* text )
No description available.
delete_surrounding: void (* delete_surrounding) ( WebKitInputMethodContext* context, int offset, guint n_chars )
No description available.
set_enable_preedit: void (* set_enable_preedit) ( WebKitInputMethodContext* context, gboolean enabled )
No description available.
get_preedit: void (* get_preedit) ( WebKitInputMethodContext* context, gchar** text, GList** underlines, guint* cursor_offset )
No description available.
filter_key_event: gboolean (* filter_key_event) ( WebKitInputMethodContext* context, GdkEventKey* key_event )
No description available.
notify_focus_in: void (* notify_focus_in) ( WebKitInputMethodContext* context )
No description available.
notify_focus_out: void (* notify_focus_out) ( WebKitInputMethodContext* context )
No description available.
notify_cursor_area: void (* notify_cursor_area) ( WebKitInputMethodContext* context, int x, int y, int width, int height )
No description available.
notify_surrounding: void (* notify_surrounding) ( WebKitInputMethodContext* context, const gchar* text, guint length, guint cursor_index, guint selection_index )
No description available.
reset: void (* reset) ( WebKitInputMethodContext* context )
No description available.
_webkit_reserved0: void (* _webkit_reserved0) ( void )
No description available.
_webkit_reserved1: void (* _webkit_reserved1) ( void )
No description available.
_webkit_reserved2: void (* _webkit_reserved2) ( void )
No description available.
_webkit_reserved3: void (* _webkit_reserved3) ( void )
No description available.
_webkit_reserved4: void (* _webkit_reserved4) ( void )
No description available.
_webkit_reserved5: void (* _webkit_reserved5) ( void )
No description available.
_webkit_reserved6: void (* _webkit_reserved6) ( void )
No description available.
_webkit_reserved7: void (* _webkit_reserved7) ( void )
No description available.