IBus Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
struct IBusPanelService; struct IBusPanelServiceClass; IBusPanelService * ibus_panel_service_new (GDBusConnection *connection
); void ibus_panel_service_candidate_clicked (IBusPanelService *panel
,guint index
,guint button
,guint state
); void ibus_panel_service_cursor_down (IBusPanelService *panel
); void ibus_panel_service_cursor_up (IBusPanelService *panel
); void ibus_panel_service_page_down (IBusPanelService *panel
); void ibus_panel_service_page_up (IBusPanelService *panel
); void ibus_panel_service_property_activate (IBusPanelService *panel
,const gchar *prop_name
,guint prop_state
); void ibus_panel_service_property_show (IBusPanelService *panel
,const gchar *prop_name
); void ibus_panel_service_property_hide (IBusPanelService *panel
,const gchar *prop_name
);
GObject +----GInitiallyUnowned +----IBusObject +----IBusService +----IBusPanelService
"cursor-down-lookup-table" :Run Last
"cursor-up-lookup-table" :Run Last
"destroy-context" :Run Last
"focus-in" :Run Last
"focus-out" :Run Last
"hide-auxiliary-text" :Run Last
"hide-language-bar" :Run Last
"hide-lookup-table" :Run Last
"hide-preedit-text" :Run Last
"page-down-lookup-table" :Run Last
"page-up-lookup-table" :Run Last
"register-properties" :Run Last
"reset" :Run Last
"set-cursor-location" :Run Last
"show-auxiliary-text" :Run Last
"show-language-bar" :Run Last
"show-lookup-table" :Run Last
"show-preedit-text" :Run Last
"start-setup" :Run Last
"state-changed" :Run Last
"update-auxiliary-text" :Run Last
"update-lookup-table" :Run Last
"update-preedit-text" :Run Last
"update-property" :Run Last
An IBusPanelService is a base class for UI services. Developers can "extend" this class for panel UI development.
struct IBusPanelService;
An opaque data type representing an IBusPanelService.
struct IBusPanelServiceClass { IBusServiceClass parent; /* class members */ void (* focus_in) (IBusPanelService *panel, const gchar *input_context_path); void (* focus_out) (IBusPanelService *panel, const gchar *input_context_path); void (* register_properties) (IBusPanelService *panel, IBusPropList *prop_list); void (* set_cursor_location) (IBusPanelService *panel, gint x, gint y, gint w, gint h); void (* update_auxiliary_text) (IBusPanelService *panel, IBusText *text, gboolean visible); void (* update_lookup_table) (IBusPanelService *panel, IBusLookupTable *lookup_table, gboolean visible); void (* update_preedit_text) (IBusPanelService *panel, IBusText *text, guint cursor_pos, gboolean visible); void (* update_property) (IBusPanelService *panel, IBusProperty *prop); void (* cursor_down_lookup_table) (IBusPanelService *panel); void (* cursor_up_lookup_table) (IBusPanelService *panel); void (* hide_auxiliary_text) (IBusPanelService *panel); void (* hide_language_bar) (IBusPanelService *panel); void (* hide_lookup_table) (IBusPanelService *panel); void (* hide_preedit_text) (IBusPanelService *panel); void (* page_down_lookup_table) (IBusPanelService *panel); void (* page_up_lookup_table) (IBusPanelService *panel); void (* reset) (IBusPanelService *panel); void (* show_auxiliary_text) (IBusPanelService *panel); void (* show_language_bar) (IBusPanelService *panel); void (* show_lookup_table) (IBusPanelService *panel); void (* show_preedit_text) (IBusPanelService *panel); void (* start_setup) (IBusPanelService *panel); void (* state_changed) (IBusPanelService *panel); void (* destroy_context) (IBusPanelService *panel, const gchar *input_context_path); };
IBusPanelService * ibus_panel_service_new (GDBusConnection *connection
);
New an IBusPanelService from an GDBusConnection.
|
An GDBusConnection. |
Returns : |
A newly allocated IBusPanelService. |
void ibus_panel_service_candidate_clicked (IBusPanelService *panel
,guint index
,guint button
,guint state
);
Notify that a candidate is clicked by sending a "CandidateClicked" to IBus service.
|
An IBusPanelService |
|
Index in the Lookup table |
|
GdkEventButton::button (1: left button, etc.) |
|
GdkEventButton::state (key modifier flags) |
void ibus_panel_service_cursor_down (IBusPanelService *panel
);
Notify that the cursor is down by sending a "CursorDown" to IBus service.
|
An IBusPanelService |
void ibus_panel_service_cursor_up (IBusPanelService *panel
);
Notify that the cursor is up by sending a "CursorUp" to IBus service.
|
An IBusPanelService |
void ibus_panel_service_page_down (IBusPanelService *panel
);
Notify that the page is down by sending a "PageDown" to IBus service.
|
An IBusPanelService |
void ibus_panel_service_page_up (IBusPanelService *panel
);
Notify that the page is up by sending a "PageUp" to IBus service.
|
An IBusPanelService |
void ibus_panel_service_property_activate (IBusPanelService *panel
,const gchar *prop_name
,guint prop_state
);
Notify that a property is active by sending a "PropertyActivate" message to IBus service.
|
An IBusPanelService |
|
A property name |
|
State of the property |
void ibus_panel_service_property_show (IBusPanelService *panel
,const gchar *prop_name
);
Notify that a property is shown by sending a "ValueChanged" message to IBus service.
|
An IBusPanelService |
|
A property name |
void ibus_panel_service_property_hide (IBusPanelService *panel
,const gchar *prop_name
);
Notify that a property is hidden by sending a "ValueChanged" message to IBus service.
|
An IBusPanelService |
|
A property name |
"cursor-down-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the cursor-down-lookup-table.
Implement the member function cursor_down_lookup_table()
in extended
class to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"cursor-up-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the cursor-up-lookup-table.
Implement the member function cursor_up_lookup_table()
in extended
class to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"destroy-context"
signalvoid user_function (IBusPanelService *input_context_path,
gchar *arg1,
gpointer user_data) : Run Last
Emitted when the client application destroys.
Implement the member function destroy_context()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
Object path of InputContext. |
|
user data set when the signal handler was connected. |
"focus-in"
signalvoid user_function (IBusPanelService *input_context_path,
gchar *arg1,
gpointer user_data) : Run Last
Emitted when the client application get the focus-in.
Implement the member function focus_in()
in extended class to receive
this signal.
Argument user_data
is ignored in this function.
|
Object path of InputContext. |
|
user data set when the signal handler was connected. |
"focus-out"
signalvoid user_function (IBusPanelService *input_context_path,
gchar *arg1,
gpointer user_data) : Run Last
Emitted when the client application get the focus-out.
Implement the member function focus_out()
in extended class to receive
this signal.
Argument user_data
is ignored in this function.
|
Object path of InputContext. |
|
user data set when the signal handler was connected. |
"hide-auxiliary-text"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the hide-auxiliary-text.
Implement the member function hide_auxiliary_text()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"hide-language-bar"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the hide-language-bar.
Implement the member function hide_language_bar()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"hide-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the hide-lookup-table.
Implement the member function hide_lookup_table()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"hide-preedit-text"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the hide-preedit-text.
Implement the member function hide_preedit_text()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"page-down-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the page-down-lookup-table.
Implement the member function page_down_lookup_table()
in extended
class to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"page-up-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the page-up-lookup-table.
Implement the member function page_up_lookup_table()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"register-properties"
signalvoid user_function (IBusPanelService *prop_list,
IBusPropList *arg1,
gpointer user_data) : Run Last
Emitted when the client application get the register-properties.
Implement the member function register_properties()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
An IBusPropList that contains properties. |
|
user data set when the signal handler was connected. |
"reset"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the reset.
Implement the member function reset()
in extended class to receive this
signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"set-cursor-location"
signalvoid user_function (IBusPanelService *x,
gint y,
gint w,
gint h,
gint arg4,
gpointer user_data) : Run Last
Emitted when the client application get the set-cursor-location.
Implement the member function set_cursor_location()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
X coordinate of the cursor. |
|
Y coordinate of the cursor. |
|
Width of the cursor. |
|
Height of the cursor. |
|
user data set when the signal handler was connected. |
"show-auxiliary-text"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the show-auxiliary-text.
Implement the member function show_auxiliary_text()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"show-language-bar"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the show-language-bar.
Implement the member function show_language_bar()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"show-lookup-table"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the show-lookup-table.
Implement the member function show_lookup_table()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"show-preedit-text"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the show-preedit-text.
Implement the member function show_preedit_text()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"start-setup"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the start-setup.
Implement the member function start_setup()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"state-changed"
signalvoid user_function (IBusPanelService *arg0,
gpointer user_data) : Run Last
Emitted when the client application get the state-changed.
Implement the member function state_changed()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
user data set when the signal handler was connected. |
"update-auxiliary-text"
signalvoid user_function (IBusPanelService *text,
IBusText *visible,
gboolean arg2,
gpointer user_data) : Run Last
Emitted when the client application get the update-auxiliary-text.
Implement the member function update_auxiliary_text()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
A preedit text to be updated. |
|
Whether the update is visible. |
|
user data set when the signal handler was connected. |
"update-lookup-table"
signalvoid user_function (IBusPanelService *lookup_table,
IBusLookupTable *visible,
gboolean arg2,
gpointer user_data) : Run Last
Emitted when the client application get the update-lookup-table.
Implement the member function update_lookup_table()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
A lookup table to be updated. |
|
Whether the update is visible. |
|
user data set when the signal handler was connected. |
"update-preedit-text"
signalvoid user_function (IBusPanelService *text,
IBusText *cursor_pos,
guint visible,
gboolean arg3,
gpointer user_data) : Run Last
Emitted when the client application get the update-preedit-text.
Implement the member function update_preedit_text()
in extended class
to receive this signal.
Argument user_data
is ignored in this function.
|
A preedit text to be updated. |
|
The cursor position of the text. |
|
Whether the update is visible. |
|
user data set when the signal handler was connected. |
"update-property"
signalvoid user_function (IBusPanelService *prop,
IBusProperty *arg1,
gpointer user_data) : Run Last
Emitted when the client application get the update-property.
Implement the member function update_property()
in extended class to
receive this signal.
Argument user_data
is ignored in this function.
|
The IBusProperty to be updated. |
|
user data set when the signal handler was connected. |