48
48
(G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_ATTRIBUTE, IBusAttributeClass))
50
50
/* define IBusAttrList macros */
52
* IBUS_TYPE_ATTR_LIST:
54
* Return GType of IBus attribute list.
51
56
#define IBUS_TYPE_ATTR_LIST \
52
57
(ibus_attr_list_get_type ())
61
* @obj: An object which is subject to casting.
63
* Casts an IBUS_ATTR_LIST or derived pointer into a (IBusAttrList*) pointer.
64
* Depending on the current debugging level, this function may invoke
65
* certain runtime checks to identify invalid casts.
53
67
#define IBUS_ATTR_LIST(obj) \
54
68
(G_TYPE_CHECK_INSTANCE_CAST ((obj), IBUS_TYPE_ATTR_LIST, IBusAttrList))
71
* IBUS_ATTR_LIST_CLASS:
72
* @klass: A class to be casted.
74
* Casts a derived IBusAttrListClass structure into a IBusAttrListClass structure.
55
76
#define IBUS_ATTR_LIST_CLASS(klass) \
56
77
(G_TYPE_CHECK_CLASS_CAST ((klass), IBUS_TYPE_ATTR_LIST, IBusAttrListClass))
81
* @obj: Instance to check for being a IBUS_ATTR_LIST.
83
* Checks whether a valid GTypeInstance pointer is of type IBUS_ATTR_LIST.
57
85
#define IBUS_IS_ATTR_LIST(obj) \
58
86
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), IBUS_TYPE_ATTR_LIST))
89
* IBUS_IS_ATTR_LIST_CLASS:
90
* @klass: A class to be checked.
92
* Checks whether class "is a" valid IBusAttrListClass structure of type IBUS_ATTR_LIST or derived.
59
94
#define IBUS_IS_ATTR_LIST_CLASS(klass) \
60
95
(G_TYPE_CHECK_CLASS_TYPE ((klass), IBUS_TYPE_ATTR_LIST))
98
* IBUS_ATTR_LIST_GET_CLASS:
101
* Get the class of a given object and cast the class to IBusAttrListClass.
61
103
#define IBUS_ATTR_LIST_GET_CLASS(obj) \
62
104
(G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_ATTR_LIST, IBusAttrListClass))
67
109
* @IBUS_ATTR_TYPE_FOREGROUND: Foreground color.
68
110
* @IBUS_ATTR_TYPE_BACKGROUND: Background color.
70
* Type of IBusText attribute.
112
* Type enumeration of IBusText attribute.
73
115
IBUS_ATTR_TYPE_UNDERLINE = 1,
81
123
* @IBUS_ATTR_UNDERLINE_SINGLE: Single underline.
82
124
* @IBUS_ATTR_UNDERLINE_DOUBLE: Double underline.
83
125
* @IBUS_ATTR_UNDERLINE_LOW: Low underline ? %FIXME
126
* @IBUS_ATTR_UNDERLINE_ERROR: Error underline
85
128
* Type of IBusText attribute.
89
132
IBUS_ATTR_UNDERLINE_SINGLE = 1,
90
133
IBUS_ATTR_UNDERLINE_DOUBLE = 2,
91
134
IBUS_ATTR_UNDERLINE_LOW = 3,
135
IBUS_ATTR_UNDERLINE_ERROR = 4,
92
136
} IBusAttrUnderline;
221
265
* @attr_list: An IBusAttrList instance.
222
266
* @attr: The IBusAttribute instance to be appended.
224
* Append an IBusAttribute to IBusAttrList.
268
* Append an IBusAttribute to IBusAttrList, and increase reference.
226
270
void ibus_attr_list_append (IBusAttrList *attr_list,
227
271
IBusAttribute *attr);
231
275
* @index: Index of the @attr_list.
232
276
* @returns: IBusAttribute at given index, NULL if no such IBusAttribute.
234
* Returns IBusAttribute at given index.
278
* Returns IBusAttribute at given index. Borrowed reference.
236
280
IBusAttribute *ibus_attr_list_get (IBusAttrList *attr_list,