| libMirage Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Implemented Interfaces | Signals | ||||
#include <mirage-object.h>
MirageObject;
MirageObjectClass;
gpointer mirage_object_get_parent (MirageObject *self);
void mirage_object_set_parent (MirageObject *self,
gpointer parent);
GObject +----MirageObject +----MirageCdTextCoder +----MirageDisc +----MirageFileStream +----MirageFilterStream +----MirageFragment +----MirageIndex +----MirageLanguage +----MirageParser +----MirageSector +----MirageSession +----MirageTrack +----MirageWriter
MirageObject is used as a base object class throughout libMirage. It implements MirageContextual interface, which allows attachment of MirageContext. It also implements support for constructing parent-child hierarchy, which allows propagation of the MirageContext and its changes from parent to the child objects.
typedef struct _MirageObject MirageObject;
All the fields in the MirageObject structure are private to the MirageObject implementation and should never be accessed directly.
typedef struct {
GObjectClass parent_class;
} MirageObjectClass;
The class structure for the MirageObject type.
GObjectClass |
the parent class |
gpointer mirage_object_get_parent (MirageObject *self);
Returns pointer to object's parent object.
|
a MirageObject |
Returns : |
parent object, or NULL.. transfer full. type MirageObject. |
void mirage_object_set_parent (MirageObject *self, gpointer parent);
Sets object's parent. If parent is NULL, the object's parent is
reset.
|
a MirageObject |
|
parent. in. allow-none. type MirageObject. |
"context-changed" signalvoid user_function (MirageObject *object, gpointer user_data) : Run Last
Emitted when a new MirageContext is set to a MirageObject.
|
a MirageObject |
|
user data set when the signal handler was connected. |