![]() |
![]() |
![]() |
IBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
enum IBusObjectFlags; #define IBUS_OBJECT_FLAGS (obj) #define IBUS_OBJECT_SET_FLAGS (obj,flag) #define IBUS_OBJECT_UNSET_FLAGS (obj,flag) #define IBUS_OBJECT_DESTROYED (obj) IBusObject; IBusObject * ibus_object_new (void); void ibus_object_destroy (IBusObject *object);
GObject +----IBusObject +----IBusService +----IBusSerializable +----IBusProxy +----IBusServer +----IBusConnection +----IBusBus
typedef enum { IBUS_IN_DESTRUCTION = (1 << 0), IBUS_DESTROYED = (1 << 1), IBUS_RESERVED_1 = (1 << 2), IBUS_RESERVED_2 = (1 << 3), } IBusObjectFlags;
#define IBUS_OBJECT_SET_FLAGS(obj,flag) G_STMT_START{ (IBUS_OBJECT_FLAGS (obj) |= (flag)); }G_STMT_END
|
|
|
#define IBUS_OBJECT_UNSET_FLAGS(obj,flag) G_STMT_START{ (IBUS_OBJECT_FLAGS (obj) &= ~(flag)); }G_STMT_END
|
|
|
#define IBUS_OBJECT_DESTROYED(obj) (IBUS_OBJECT_FLAGS (obj) & IBUS_DESTROYED)
|
typedef struct _IBusObject IBusObject;
All the fields in the IBusObject structure are prtivate to the IBusObject and should never be accessed directly.
IBusObject * ibus_object_new (void);
Creates a new instance of an IBusObject.
Returns : |
a new instance of IBusObject. |
void ibus_object_destroy (IBusObject *object);
Emit the "destory" signal notifying all reference holders that they should release the IBusObject.
The memory for the object itself won't be deleted until its reference count actually drops to 0; ibus_object_destroy merely asks reference holders to release their references. it does not free the object.
|
an IBusObject to destroy. |
"destroy"
signalvoid user_function (IBusObject *ibusobject, gpointer user_data) : Run Last
|
the object which received the signal. |
|
user data set when the signal handler was connected. |