libgxim Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy |
GXimAttribute; GXimExt; enum GXimGdkEventError; GXimHotkeyTrigger; gboolean (*GXimNestedFunc) (GXimNestedListNode *node
,gpointer user_data
); GXimNestedList; struct GXimNestedListNode; GXimPoint; GXimPreeditCaret; GXimPreeditDraw; GXimRawAttr; GXimRectangle; GXimSepNestedList; enum GXimStatusDataType; GXimStatusDraw; GXimStrConvText; enum GXimStyle; GXimStyles; GXimText; #define G_TYPE_XIM_NESTEDLIST #define G_TYPE_XIM_SEP_NESTEDLIST #define G_XIM_CHECK_ALLOC (_v_, _r_) #define G_XIM_CHECK_ALLOC_WITH_CODE (_v_, _c_, _r_) #define G_XIM_CHECK_ALLOC_WITH_NO_RET (_v_) #define G_XIM_GDKEVENT_ERROR #define G_XIM_GERROR_CHECK_ALLOC (_v_, _e_, _t_, _r_) #define G_XIM_GERROR_CHECK_ALLOC_WITH_CODE (_v_, _e_, _t_, _c_, _r_) #define G_XIM_GERROR_RESET_NOTICE_FLAG (_e_) #define G_XIM_GERROR_SET_NOTICE_FLAG (_e_, _f_) #define G_XIM_STYLES_ERROR void g_xim_attribute_clear (GXimAttribute *attr
); gpointer g_xim_attribute_copy (gpointer boxed
); void g_xim_attribute_free (gpointer boxed
); gpointer g_xim_attribute_new (void
); gpointer g_xim_attribute_new_with_value (guint16 id
,GXimValueType vtype
,gpointer value
); gsize g_xim_attribute_put_to_stream (GXimAttribute *attr
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_attribute_set (GXimAttribute *attr
,guint16 id
,GXimValueType vtype
,gpointer value
); gpointer g_xim_copy_by_gtype (GType gtype
,gpointer value
); gpointer g_xim_encodinginfo_copy (gpointer boxed
); void g_xim_encodinginfo_free (gpointer boxed
); gpointer g_xim_encodinginfo_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_encodinginfo_get_length (GXimEncodingInfo *encoding
); const gchar * g_xim_encodinginfo_get_string (const GXimEncodingInfo *encoding
); gpointer g_xim_encodinginfo_new (void
); gsize g_xim_encodinginfo_put_to_stream (GXimEncodingInfo *encoding
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_ext_copy (gpointer boxed
); void g_xim_ext_free (gpointer boxed
); gpointer g_xim_ext_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_ext_new (guint8 major_opcode
,guint8 minor_opcode
,const gchar *name
); gsize g_xim_ext_put_to_stream (GXimExt *ext
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_finalize (void
); gpointer g_xim_fontset_copy (gpointer boxed
); void g_xim_fontset_free (gpointer boxed
); gpointer g_xim_fontset_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_fontset_put_to_stream (GXimFontSet *fontset
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_free_by_gtype (GType gtype
,gpointer value
); GQuark g_xim_gdkevent_get_error_quark (void
); gpointer g_xim_gdkevent_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_gdkevent_put_to_stream (GdkEvent *event
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); GDataStreamByteOrder g_xim_get_byte_order (void
); GdkPixmap * g_xim_get_pixmap (GdkDisplay *dpy
,GdkNativeWindow window
); GdkWindow * g_xim_get_selection_owner (GdkDisplay *display
,GdkAtom selection
); GdkAtom g_xim_get_server_atom (const gchar *server_name
); GdkWindow * g_xim_get_window (GdkDisplay *dpy
,GdkNativeWindow window
); gpointer g_xim_gstring_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_gstring_put_to_stream (GString *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
); GXimValueType g_xim_gtype_to_value_type (GType gtype
); gpointer g_xim_hotkey_trigger_copy (gpointer boxed
); void g_xim_hotkey_trigger_free (gpointer boxed
); gpointer g_xim_hotkey_trigger_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_hotkey_trigger_new (guint32 keysym
,guint32 modifier
,guint32 modifier_mask
); gsize g_xim_hotkey_trigger_put_to_stream (GXimHotkeyTrigger *hotkey
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_init (void
); GdkWindow * g_xim_lookup_xim_server (GdkDisplay *dpy
,GdkAtom atom_server
,gboolean *is_valid
); GdkWindow * g_xim_lookup_xim_server_from_string (GdkDisplay *dpy
,const gchar *server_name
,gboolean *is_valid
); gboolean g_xim_nested_list_append (GXimNestedList *list
,const gchar *name
,gpointer value
); gpointer g_xim_nested_list_copy (gpointer boxed
); gboolean g_xim_nested_list_foreach (GXimNestedList *list
,GXimNestedFunc func
,gpointer data
); void g_xim_nested_list_free (gpointer boxed
); gpointer g_xim_nested_list_new (GXimAttr *attr
,guint n_nodes
); gsize g_xim_nested_list_put_to_stream (GXimNestedList *list
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); gpointer g_xim_point_copy (gpointer boxed
); void g_xim_point_free (gpointer boxed
); gpointer g_xim_point_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_point_new (void
); gsize g_xim_point_put_to_stream (GXimPoint *point
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); gpointer g_xim_preedit_caret_copy (gpointer boxed
); void g_xim_preedit_caret_free (gpointer boxed
); gpointer g_xim_preedit_caret_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_preedit_caret_new (void
); gsize g_xim_preedit_caret_put_to_stream (GXimPreeditCaret *caret
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); gpointer g_xim_preedit_draw_copy (gpointer boxed
); void g_xim_preedit_draw_free (gpointer boxed
); gpointer g_xim_preedit_draw_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_preedit_draw_new (void
); gsize g_xim_preedit_draw_put_to_stream (GXimPreeditDraw *draw
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); const gchar * g_xim_protocol_name (guint16 major_opcode
); void g_xim_raw_attr_clear (GXimRawAttr *attr
); gpointer g_xim_raw_attr_copy (gpointer boxed
); void g_xim_raw_attr_free (gpointer boxed
); gpointer g_xim_raw_attr_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_raw_attr_new (void
); gpointer g_xim_raw_attr_new_with_value (guint16 id
,GString *name
,GXimValueType vtype
); gsize g_xim_raw_attr_put_to_stream (GXimRawAttr *attr
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_raw_attr_set_name (GXimRawAttr *attr
,GString *name
); gpointer g_xim_rectangle_copy (gpointer boxed
); void g_xim_rectangle_free (gpointer boxed
); gpointer g_xim_rectangle_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_rectangle_new (void
); gsize g_xim_rectangle_put_to_stream (GXimRectangle *rectangle
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); gpointer g_xim_sep_nested_list_copy (gpointer boxed
); void g_xim_sep_nested_list_free (gpointer boxed
); gpointer g_xim_sep_nested_list_new (void
); gpointer g_xim_status_draw_copy (gpointer boxed
); void g_xim_status_draw_free (gpointer boxed
); gpointer g_xim_status_draw_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_status_draw_new (void
); gsize g_xim_status_draw_put_to_stream (GXimStatusDraw *draw
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); GXimStr * g_xim_str_append (GXimStr *string
,const gchar *val
); GXimStr * g_xim_str_append_len (GXimStr *string
,const gchar *val
,gssize len
); guint16 g_xim_str_conv_get_feedback (GXimStrConvText *text
); void g_xim_str_conv_set_feedback (GXimStrConvText *text
,guint16 feedback
); void g_xim_str_conv_text_free (GXimStrConvText *text
); GXimStrConvText * g_xim_str_conv_text_new (const gchar *string
,guint16 length
); GXimStrConvText * g_xim_str_conv_text_new_full (const gchar *string
,guint16 length
,guint16 feedback
); gpointer g_xim_str_copy (gpointer boxed
); void g_xim_str_free (gpointer boxed
); gpointer g_xim_str_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_str_get_length (const GXimStr *string
); const gchar * g_xim_str_get_string (const GXimStr *string
); gpointer g_xim_str_new (void
); gsize g_xim_str_put_to_stream (GXimStr *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_string_copy (gpointer boxed
); void g_xim_string_free (gpointer boxed
); gpointer g_xim_string_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gsize g_xim_string_get_length (GXimString *string
); const gchar * g_xim_string_get_string (const GXimString *string
); gpointer g_xim_string_new (void
); gsize g_xim_string_put_to_stream (GXimString *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
); gboolean g_xim_styles_append (GXimStyles *styles
,GXimStyle style
,GError **error
); gpointer g_xim_styles_copy (gpointer boxed
); void g_xim_styles_free (gpointer boxed
); GQuark g_xim_styles_get_error_quark (void
); gpointer g_xim_styles_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gboolean g_xim_styles_insert (GXimStyles *styles
,guint index_
,GXimStyle style
,GError **error
); GXimStyles * g_xim_styles_new (void
); gsize g_xim_styles_put_to_stream (GXimStyles *styles
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_text_clear_string (GXimText *text
); gpointer g_xim_text_copy (gpointer boxed
); void g_xim_text_free (gpointer boxed
); GXimFeedback g_xim_text_get_feedback (GXimText *text
,gshort position
); gpointer g_xim_text_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
); gpointer g_xim_text_new (void
); gsize g_xim_text_put_to_stream (GXimText *text
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
); void g_xim_text_set_feedback (GXimText *text
,GXimFeedback feedback
,gshort position
); gboolean g_xim_text_set_mbstring (GXimText *text
,const gchar *string
,gssize length
); gboolean g_xim_text_set_wcstring (GXimText *text
,const gunichar2 *string
,gssize length
); const gchar * g_xim_value_type_name (GXimValueType vtype
); GType g_xim_value_type_to_gtype (GXimValueType vtype
);
GBoxed +----GXimAttribute
GBoxed +----GXimExt
GBoxed +----GXimHotkeyTrigger
GBoxed +----GXimPoint
GBoxed +----GXimPreeditCaret
GBoxed +----GXimPreeditDraw
GBoxed +----GXimRawAttr
GBoxed +----GXimRectangle
GBoxed +----GXimStatusDraw
GBoxed +----GXimStyles
GBoxed +----GXimText
typedef struct { guint16 id; GXimValueType vtype; union { guint i; gulong l; gpointer pointer; } v; } GXimAttribute;
typedef enum { G_XIM_GDKEVENT_ERROR_BEGIN = 128, G_XIM_GDKEVENT_ERROR_UNSUPPORTED_EVENT, } GXimGdkEventError;
typedef struct { guint32 keysym; guint32 modifier; guint32 modifier_mask; } GXimHotkeyTrigger;
typedef struct { GXimAttr *attr; guint16 n_nodes; guint16 allocated_len; GXimNestedListNode **nodes; } GXimNestedList;
struct GXimNestedListNode { GXimValueType vtype; gchar *name; gpointer value; };
typedef struct { gint position; GXimCaretDirection direction; GXimCaretStyle style; } GXimPreeditCaret;
typedef struct { gint caret; gint chg_first; gint chg_length; GXimText *text; } GXimPreeditDraw;
typedef struct { short x; short y; unsigned short width; unsigned short height; } GXimRectangle;
typedef struct { GXimStatusDataType type; union { GXimText *text; GdkPixmap *bitmap; } data; } GXimStatusDraw;
typedef struct { GXimStrConvFeedbacks feedback; guint16 length; gchar *string; } GXimStrConvText;
A structure to deal with XIM String Conversion Text.
typedef enum { G_XIM_PreeditArea = 1 << 0, G_XIM_PreeditCallbacks = 1 << 1, G_XIM_PreeditPosition = 1 << 2, G_XIM_PreeditNothing = 1 << 3, G_XIM_PreeditNone = 1 << 4, G_XIM_StatusArea = 1 << 8, G_XIM_StatusCallbacks = 1 << 9, G_XIM_StatusNothing = 1 << 10, G_XIM_StatusNone = 1 << 11, } GXimStyle;
typedef struct { gshort length; GXimFeedback *feedback; gboolean encoding_is_wchar; union { gchar *multi_byte; gunichar2 *wide_char; } string; } GXimText;
#define G_XIM_GERROR_CHECK_ALLOC_WITH_CODE(_v_,_e_,_t_,_c_,_r_)
gpointer g_xim_attribute_new_with_value (guint16 id
,GXimValueType vtype
,gpointer value
);
gsize g_xim_attribute_put_to_stream (GXimAttribute *attr
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
void g_xim_attribute_set (GXimAttribute *attr
,guint16 id
,GXimValueType vtype
,gpointer value
);
gpointer g_xim_encodinginfo_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
const gchar * g_xim_encodinginfo_get_string (const GXimEncodingInfo *encoding
);
gsize g_xim_encodinginfo_put_to_stream (GXimEncodingInfo *encoding
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_ext_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_ext_new (guint8 major_opcode
,guint8 minor_opcode
,const gchar *name
);
gsize g_xim_ext_put_to_stream (GXimExt *ext
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_fontset_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_fontset_put_to_stream (GXimFontSet *fontset
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_gdkevent_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_gdkevent_put_to_stream (GdkEvent *event
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
GdkWindow * g_xim_get_selection_owner (GdkDisplay *display
,GdkAtom selection
);
gpointer g_xim_gstring_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_gstring_put_to_stream (GString *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_hotkey_trigger_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_hotkey_trigger_new (guint32 keysym
,guint32 modifier
,guint32 modifier_mask
);
gsize g_xim_hotkey_trigger_put_to_stream (GXimHotkeyTrigger *hotkey
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
GdkWindow * g_xim_lookup_xim_server (GdkDisplay *dpy
,GdkAtom atom_server
,gboolean *is_valid
);
GdkWindow * g_xim_lookup_xim_server_from_string (GdkDisplay *dpy
,const gchar *server_name
,gboolean *is_valid
);
gboolean g_xim_nested_list_append (GXimNestedList *list
,const gchar *name
,gpointer value
);
gboolean g_xim_nested_list_foreach (GXimNestedList *list
,GXimNestedFunc func
,gpointer data
);
gsize g_xim_nested_list_put_to_stream (GXimNestedList *list
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_point_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_point_put_to_stream (GXimPoint *point
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_preedit_caret_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_preedit_caret_put_to_stream (GXimPreeditCaret *caret
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_preedit_draw_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_preedit_draw_put_to_stream (GXimPreeditDraw *draw
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_raw_attr_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_raw_attr_new_with_value (guint16 id
,GString *name
,GXimValueType vtype
);
gsize g_xim_raw_attr_put_to_stream (GXimRawAttr *attr
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_rectangle_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_rectangle_put_to_stream (GXimRectangle *rectangle
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_status_draw_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_status_draw_put_to_stream (GXimStatusDraw *draw
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
GXimStr * g_xim_str_append_len (GXimStr *string
,const gchar *val
,gssize len
);
void g_xim_str_conv_set_feedback (GXimStrConvText *text
,guint16 feedback
);
GXimStrConvText * g_xim_str_conv_text_new (const gchar *string
,guint16 length
);
GXimStrConvText * g_xim_str_conv_text_new_full (const gchar *string
,guint16 length
,guint16 feedback
);
gpointer g_xim_str_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_str_put_to_stream (GXimStr *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_string_get_from_stream (GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_string_put_to_stream (GXimString *string
,GDataOutputStream *stream
,GCancellable *cancellable
,GError **error
);
gboolean g_xim_styles_append (GXimStyles *styles
,GXimStyle style
,GError **error
);
gpointer g_xim_styles_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gboolean g_xim_styles_insert (GXimStyles *styles
,guint index_
,GXimStyle style
,GError **error
);
gsize g_xim_styles_put_to_stream (GXimStyles *styles
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
gpointer g_xim_text_get_from_stream (GXimProtocol *proto
,GDataInputStream *stream
,GCancellable *cancellable
,GError **error
);
gsize g_xim_text_put_to_stream (GXimText *text
,GXimProtocol *proto
,GCancellable *cancellable
,GError **error
);
void g_xim_text_set_feedback (GXimText *text
,GXimFeedback feedback
,gshort position
);
gboolean g_xim_text_set_mbstring (GXimText *text
,const gchar *string
,gssize length
);
gboolean g_xim_text_set_wcstring (GXimText *text
,const gunichar2 *string
,gssize length
);