~joel-auterson/ubuntu/maverick/ibus/newmenuname

« back to all changes in this revision

Viewing changes to src/ibusattribute.h

  • Committer: Bazaar Package Importer
  • Author(s): LI Daobing
  • Date: 2009-10-05 20:45:18 UTC
  • mfrom: (1.1.5 upstream) (6.1.15 sid)
  • Revision ID: james.westby@ubuntu.com-20091005204518-069vlwrl3r8v7bbr
Tags: 1.2.0.20090927-2
* create po template when build (LP: #188690)
  - debian/rules: updated.
  - debian/clean: remove pot file when clean.
* debian/control: build depends on python-rsvg (LP: #432375)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
    (G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_ATTRIBUTE, IBusAttributeClass))
49
49
 
50
50
/* define IBusAttrList macros */
 
51
/**
 
52
 * IBUS_TYPE_ATTR_LIST:
 
53
 *
 
54
 * Return GType of IBus attribute list.
 
55
 */
51
56
#define IBUS_TYPE_ATTR_LIST             \
52
57
    (ibus_attr_list_get_type ())
 
58
 
 
59
/**
 
60
 * IBUS_ATTR_LIST:
 
61
 * @obj: An object which is subject to casting.
 
62
 *
 
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.
 
66
 */
53
67
#define IBUS_ATTR_LIST(obj)             \
54
68
    (G_TYPE_CHECK_INSTANCE_CAST ((obj), IBUS_TYPE_ATTR_LIST, IBusAttrList))
 
69
 
 
70
/**
 
71
 * IBUS_ATTR_LIST_CLASS:
 
72
 * @klass: A class to be casted.
 
73
 *
 
74
 * Casts a derived IBusAttrListClass structure into a IBusAttrListClass structure.
 
75
 */
55
76
#define IBUS_ATTR_LIST_CLASS(klass)     \
56
77
    (G_TYPE_CHECK_CLASS_CAST ((klass), IBUS_TYPE_ATTR_LIST, IBusAttrListClass))
 
78
 
 
79
/**
 
80
 * IBUS_IS_ATTR_LIST:
 
81
 * @obj: Instance to check for being a IBUS_ATTR_LIST.
 
82
 *
 
83
 * Checks whether a valid GTypeInstance pointer is of type IBUS_ATTR_LIST.
 
84
 */
57
85
#define IBUS_IS_ATTR_LIST(obj)          \
58
86
    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IBUS_TYPE_ATTR_LIST))
 
87
 
 
88
/**
 
89
 * IBUS_IS_ATTR_LIST_CLASS:
 
90
 * @klass: A class to be checked.
 
91
 *
 
92
 * Checks whether class "is a" valid IBusAttrListClass structure of type IBUS_ATTR_LIST or derived.
 
93
 */
59
94
#define IBUS_IS_ATTR_LIST_CLASS(klass)  \
60
95
    (G_TYPE_CHECK_CLASS_TYPE ((klass), IBUS_TYPE_ATTR_LIST))
 
96
 
 
97
/**
 
98
 * IBUS_ATTR_LIST_GET_CLASS:
 
99
 * @obj: An object.
 
100
 *
 
101
 * Get the class of a given object and cast the class to IBusAttrListClass.
 
102
 */
61
103
#define IBUS_ATTR_LIST_GET_CLASS(obj)   \
62
104
    (G_TYPE_INSTANCE_GET_CLASS ((obj), IBUS_TYPE_ATTR_LIST, IBusAttrListClass))
63
105
 
67
109
 * @IBUS_ATTR_TYPE_FOREGROUND: Foreground color.
68
110
 * @IBUS_ATTR_TYPE_BACKGROUND: Background color.
69
111
 *
70
 
 * Type of IBusText attribute.
 
112
 * Type enumeration of IBusText attribute.
71
113
 */
72
114
typedef enum {
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
84
127
 *
85
128
 * Type of IBusText attribute.
86
129
 */
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;
93
137
 
94
138
G_BEGIN_DECLS
221
265
 * @attr_list: An IBusAttrList instance.
222
266
 * @attr: The IBusAttribute instance to be appended.
223
267
 *
224
 
 * Append an IBusAttribute to IBusAttrList.
 
268
 * Append an IBusAttribute to IBusAttrList, and increase reference.
225
269
 */
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.
233
277
 *
234
 
 * Returns IBusAttribute at given index.
 
278
 * Returns IBusAttribute at given index. Borrowed reference.
235
279
 */
236
280
IBusAttribute       *ibus_attr_list_get         (IBusAttrList   *attr_list,
237
281
                                                 guint           index);