libgxim Reference Manual | ||||
---|---|---|---|---|
GXimConnection; void g_xim_connection_setup (GXimConnection *conn); gboolean g_xim_connection_cmd_error (GXimConnection *conn, guint16 imid, guint16 icid, GXimErrorMask flag, GXimErrorCode error_code, guint16 detail, const gchar *error_message); gboolean g_xim_connection_cmd_auth_ng (GXimConnection *conn); gboolean g_xim_connection_cmd_forward_event (GXimConnection *conn, guint16 imid, guint16 icid, guint16 flag, GdkEvent *event); gboolean g_xim_connection_cmd_sync_reply (GXimConnection *conn, guint16 imid, guint16 icid);
GXimConnection provides a common facility to deal with XIM protocol events after the connection established.
typedef struct _GXimConnection GXimConnection;
An abstract implementation of connection class
void g_xim_connection_setup (GXimConnection *conn);
Configures conn
to get it working. this is a helper function since
GXimConnection is an abstract class. if you have any connection class being
inherited from GXimConnection, you will have to invoke this function in
appropriate timing.
|
a GXimConnection. |
gboolean g_xim_connection_cmd_error (GXimConnection *conn, guint16 imid, guint16 icid, GXimErrorMask flag, GXimErrorCode error_code, guint16 detail, const gchar *error_message);
Sends XIM_ERROR
to the opposite direction on the connection. which would
respond a request as error.
This is asynchronous event so it doesn't ensure if the client really receives this event.
|
a GXimConnection. |
|
input-method ID |
|
input-context ID |
|
a flag to validate the parameters, which should be GXimErrorMask. |
|
error code returned by XIM protocol events. |
|
unused in XIM protocol but just reserved. |
|
error message which should be more human readable. |
Returns : |
TRUE to be sent the event successfully.
|
gboolean g_xim_connection_cmd_auth_ng (GXimConnection *conn);
Sends XIM_AUTH_NG
to the opposite direction on the connection. which would
respond the authentication request as error.
This is asynchronous event so it doesn't ensure if the client really receives this event.
|
a GXimConnection. |
Returns : |
TRUE to be sent the event successfully.
|
gboolean g_xim_connection_cmd_forward_event (GXimConnection *conn, guint16 imid, guint16 icid, guint16 flag, GdkEvent *event);
Sends XIM_FORWARD_EVENT
to the opposite direction on the connection. which would
notify the key event or respond XIM_FORWARD_EVENT
.
|
a GXimConnection. |
|
input-method ID |
|
input-context ID |
|
a flag to give additional requests, which is GXimEventFlags. |
|
the GdkEvent which send to the opposite direction on the connection. |
Returns : |
TRUE to be sent the event successfully.
|
gboolean g_xim_connection_cmd_sync_reply (GXimConnection *conn, guint16 imid, guint16 icid);
Sends XIM_SYNC_REPLY
to the opposite direction on the connection. which would
respond XIM_SYNC
or any synchronous requests.
|
a GXimConnection. |
|
input-method ID |
|
input-context ID |
Returns : |
TRUE to be sent the event successfully.
|