00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef QIMSYSPREEDITITEMLIST_H
00022 #define QIMSYSPREEDITITEMLIST_H
00023
00024 #include <glib-object.h>
00025 #include "qimsysglobal.h"
00026
00027 #ifdef __cplusplus
00028 extern "C" {
00029 #endif
00030
00031 G_BEGIN_DECLS
00032
00033 #define QIMSYSPREEDITITEMLIST_TYPE (qimsys_preedit_item_list_get_type())
00034 #define QIMSYSPREEDITITEMLIST(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), QIMSYSPREEDITITEMLIST_TYPE, QimsysPreeditItemList))
00035 #define QIMSYSPREEDITITEMLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), QIMSYSPREEDITITEMLIST_TYPE, QimsysPreeditItemListClass))
00036 #define IS_QIMSYSPREEDITITEMLIST(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), QIMSYSPREEDITITEMLIST_TYPE))
00037 #define IS_QIMSYSPREEDITITEMLIST_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), QIMSYSPREEDITITEMLIST_TYPE))
00038 #define QIMSYSPREEDITITEMLIST_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), QIMSYSPREEDITITEMLIST, QimsysPreeditItemListClass))
00039
00040 typedef struct {
00041 const char *text;
00042 int cursor;
00043 int selection;
00044 int underline_style;
00045 } QimsysPreeditItem;
00046
00047 #define QIMSYS_STRUCT_PREEDITITEM (dbus_g_type_get_struct ("GValueArray", G_TYPE_STRING, G_TYPE_INT, G_TYPE_INT, G_TYPE_INT, G_TYPE_INVALID))
00048 #define QIMSYS_STRUCT_PREEDITITEMLIST (dbus_g_type_get_collection ("GPtrArray", QIMSYS_STRUCT_PREEDITITEM))
00049
00050 typedef struct _QimsysPreeditItemList QimsysPreeditItemList;
00051 typedef struct _QimsysPreeditItemListClass QimsysPreeditItemListClass;
00052
00053 struct _QimsysPreeditItemList
00054 {
00055 GObject instance_parent;
00056
00057 GArray *items;
00058 };
00059
00060 struct _QimsysPreeditItemListClass
00061 {
00062 GObjectClass class_parent;
00063
00064 void (* qimsys_preedit_item_list) (QimsysPreeditItemList *qpil);
00065 };
00066
00067 QIMSYS_EXPORT GType qimsys_preedit_item_list_get_type();
00068 QIMSYS_EXPORT QimsysPreeditItemList *qimsys_preedit_item_list_new();
00069
00070 G_END_DECLS
00071
00072 #ifdef __cplusplus
00073 }
00074 #endif
00075
00076 #endif // QIMSYSPREEDITITEMLIST_H