GXimTransport

GXimTransport

Synopsis




#define             G_XIM_TRANSPORT_SIZE
#define             G_XIM_TRANSPORT_MAX
                    GXimTransportIface;
                    GXimTransportPrivate;
enum                GXimDirection;
void                g_xim_transport_init                (GXimTransport *trans);
void                g_xim_transport_finalize            (GXimTransport *trans);
GXimTransportPrivate* g_xim_transport_get_private       (GXimTransport *trans);
void                g_xim_transport_destroy             (GXimTransport *trans);
void                g_xim_transport_set_version         (GXimTransport *trans,
                                                         guint8 major_version,
                                                         guint8 minor_version);
gboolean            g_xim_transport_get_version         (GXimTransport *trans,
                                                         guint8 *major_version,
                                                         guint8 *minor_version);
void                g_xim_transport_set_transport_size  (GXimTransport *trans,
                                                         gsize size);
gsize               g_xim_transport_get_transport_size  (GXimTransport *trans);
void                g_xim_transport_set_transport_max   (GXimTransport *trans,
                                                         gsize size);
gsize               g_xim_transport_get_transport_max   (GXimTransport *trans);
void                g_xim_transport_set_display         (GXimTransport *trans,
                                                         GdkDisplay *dpy);
GdkDisplay*         g_xim_transport_get_display         (GXimTransport *trans);
GdkAtom             g_xim_transport_get_atom            (GXimTransport *trans);
void                g_xim_transport_set_client_window   (GXimTransport *trans,
                                                         GdkNativeWindow client_window);
GdkNativeWindow     g_xim_transport_get_client_window   (GXimTransport *trans);
GdkNativeWindow     g_xim_transport_get_native_channel  (GXimTransport *trans);
GdkNativeWindow     g_xim_transport_get_native_channel_from
                                                        (GXimTransport *trans,
                                                         gpointer drawable);
GdkWindow*          g_xim_transport_get_channel         (GXimTransport *trans,
                                                         GdkWindow *parent_window);
gboolean            g_xim_transport_send_via_property   (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length);
gboolean            g_xim_transport_send_via_cm         (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length,
                                                         gsize threshold);
gboolean            g_xim_transport_send_via_property_notify
                                                        (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length);
void                g_xim_transport_set_direction       (GXimTransport *trans,
                                                         GXimDirection direction);
GXimDirection       g_xim_transport_get_direction       (GXimTransport *trans);
gboolean            g_xim_transport_get_property        (GXimTransport *trans,
                                                         GdkWindow *window,
                                                         GdkAtom property,
                                                         GdkAtom type,
                                                         gulong length,
                                                         GdkAtom *actual_property_type,
                                                         gint *actual_format,
                                                         gint *actual_length,
                                                         guchar **data);
void                g_xim_transport_dump                (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length,
                                                         gboolean is_sent);

Description

Details

G_XIM_TRANSPORT_SIZE

#define G_XIM_TRANSPORT_SIZE		20


G_XIM_TRANSPORT_MAX

#define G_XIM_TRANSPORT_MAX		20


GXimTransportIface

typedef struct {
	GTypeInterface  parent_iface;

	GXimMessage    *message;
	GdkAtom         atom_xim_protocol;
	GdkAtom         atom_xim_moredata;
} GXimTransportIface;


GXimTransportPrivate

typedef struct {
	GdkDisplay      *display;
	GdkWindow       *comm_window;
	GHashTable      *prop_offset;
	GdkAtom          atom_comm;
	GdkNativeWindow  client_window;
	gsize            transport_size;
	gsize            transport_max;
	GXimDirection    direction;
	guint8           major_version;
	guint8           minor_version;
} GXimTransportPrivate;


enum GXimDirection

typedef enum {
	G_XIM_DIR_RIGHT = 0,
	G_XIM_DIR_LEFT
} GXimDirection;


g_xim_transport_init ()

void                g_xim_transport_init                (GXimTransport *trans);

trans :


g_xim_transport_finalize ()

void                g_xim_transport_finalize            (GXimTransport *trans);

trans :


g_xim_transport_get_private ()

GXimTransportPrivate* g_xim_transport_get_private       (GXimTransport *trans);

trans :

Returns :


g_xim_transport_destroy ()

void                g_xim_transport_destroy             (GXimTransport *trans);

trans :


g_xim_transport_set_version ()

void                g_xim_transport_set_version         (GXimTransport *trans,
                                                         guint8 major_version,
                                                         guint8 minor_version);

trans :

major_version :

minor_version :


g_xim_transport_get_version ()

gboolean            g_xim_transport_get_version         (GXimTransport *trans,
                                                         guint8 *major_version,
                                                         guint8 *minor_version);

trans :

major_version :

minor_version :

Returns :


g_xim_transport_set_transport_size ()

void                g_xim_transport_set_transport_size  (GXimTransport *trans,
                                                         gsize size);

trans :

size :


g_xim_transport_get_transport_size ()

gsize               g_xim_transport_get_transport_size  (GXimTransport *trans);

trans :

Returns :


g_xim_transport_set_transport_max ()

void                g_xim_transport_set_transport_max   (GXimTransport *trans,
                                                         gsize size);

trans :

size :


g_xim_transport_get_transport_max ()

gsize               g_xim_transport_get_transport_max   (GXimTransport *trans);

trans :

Returns :


g_xim_transport_set_display ()

void                g_xim_transport_set_display         (GXimTransport *trans,
                                                         GdkDisplay *dpy);

trans :

dpy :


g_xim_transport_get_display ()

GdkDisplay*         g_xim_transport_get_display         (GXimTransport *trans);

trans :

Returns :


g_xim_transport_get_atom ()

GdkAtom             g_xim_transport_get_atom            (GXimTransport *trans);

trans :

Returns :


g_xim_transport_set_client_window ()

void                g_xim_transport_set_client_window   (GXimTransport *trans,
                                                         GdkNativeWindow client_window);

trans :

client_window :


g_xim_transport_get_client_window ()

GdkNativeWindow     g_xim_transport_get_client_window   (GXimTransport *trans);

trans :

Returns :


g_xim_transport_get_native_channel ()

GdkNativeWindow     g_xim_transport_get_native_channel  (GXimTransport *trans);

trans :

Returns :


g_xim_transport_get_native_channel_from ()

GdkNativeWindow     g_xim_transport_get_native_channel_from
                                                        (GXimTransport *trans,
                                                         gpointer drawable);

trans :

drawable :

Returns :


g_xim_transport_get_channel ()

GdkWindow*          g_xim_transport_get_channel         (GXimTransport *trans,
                                                         GdkWindow *parent_window);

trans :

parent_window :

Returns :


g_xim_transport_send_via_property ()

gboolean            g_xim_transport_send_via_property   (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length);

trans :

data :

length :

Returns :


g_xim_transport_send_via_cm ()

gboolean            g_xim_transport_send_via_cm         (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length,
                                                         gsize threshold);

trans :

data :

length :

threshold :

Returns :


g_xim_transport_send_via_property_notify ()

gboolean            g_xim_transport_send_via_property_notify
                                                        (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length);

trans :

data :

length :

Returns :


g_xim_transport_set_direction ()

void                g_xim_transport_set_direction       (GXimTransport *trans,
                                                         GXimDirection direction);

trans :

direction :


g_xim_transport_get_direction ()

GXimDirection       g_xim_transport_get_direction       (GXimTransport *trans);

trans :

Returns :


g_xim_transport_get_property ()

gboolean            g_xim_transport_get_property        (GXimTransport *trans,
                                                         GdkWindow *window,
                                                         GdkAtom property,
                                                         GdkAtom type,
                                                         gulong length,
                                                         GdkAtom *actual_property_type,
                                                         gint *actual_format,
                                                         gint *actual_length,
                                                         guchar **data);

trans :

window :

property :

type :

length :

actual_property_type :

actual_format :

actual_length :

data :

Returns :


g_xim_transport_dump ()

void                g_xim_transport_dump                (GXimTransport *trans,
                                                         const gchar *data,
                                                         gsize length,
                                                         gboolean is_sent);

trans :

data :

length :

is_sent :