![]() |
![]() |
![]() |
libMirage Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Signals |
#include <mirage-object.h> struct MirageObject; struct MirageObjectClass; gpointer mirage_object_get_parent (MirageObject *self
); void mirage_object_set_parent (MirageObject *self
,gpointer parent
);
GObject +----MirageObject +----MirageCdTextCoder +----MirageDisc +----MirageFragment +----MirageIndex +----MirageLanguage +----MirageParser +----MirageSector +----MirageSession +----MirageTrack
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 from parent to the child objects.
struct MirageObject;
All the fields in the MirageObject structure are private to the MirageObject implementation and should never be accessed directly.
struct MirageObjectClass { GObjectClass parent_class; };
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. |