Top | ![]() |
![]() |
![]() |
![]() |
IpatchList * | ipatch_list_new () |
IpatchList * | ipatch_list_duplicate () |
GList * | ipatch_list_get_items () |
void | ipatch_list_set_items () |
void | ipatch_list_append () |
void | ipatch_list_prepend () |
void | ipatch_list_insert () |
gboolean | ipatch_list_remove () |
void | ipatch_list_init_iter () |
An object which defines a list of object pointers. A GObject reference is held to all objects until the IpatchList itself is released.
IpatchList *
ipatch_list_new (void
);
Create a new object list object. IpatchList objects are often used to duplicate multi-thread sensitive object lists, so they can be iterated over at one's own leasure.
IpatchList *
ipatch_list_duplicate (IpatchList *list
);
Duplicate an object list.
GList *
ipatch_list_get_items (IpatchList *list
);
Get the items list in a IpatchList object. Mainly for the benefit of GObject Introspection, since it is common practice to just access the <structfield>items</structfield> field directly.
The list of items in
the list
object, which is owned by the list
and should not be
modified or freed directly.
[element-type GObject][transfer none]
Since: 1.1.0
void ipatch_list_set_items (IpatchList *list
,GList *items
);
Set the items list in a IpatchList object. Mainly for the benefit of GObject Introspection, since it is common practice to just access the <structfield>items</structfield> field directly. Replaces existing items (list if any).
list |
List object |
|
items |
List of GObject pointers to assign,
|
[element-type GObject][transfer full] |
Since: 1.1.0
void ipatch_list_append (IpatchList *list
,GObject *object
);
Append an object to an IpatchList.
Since: 1.1.0
void ipatch_list_prepend (IpatchList *list
,GObject *object
);
Prepend an object to an IpatchList.
Since: 1.1.0
void ipatch_list_insert (IpatchList *list
,GObject *object
,int pos
);
Append an object to an IpatchList.
list |
List object |
|
object |
Object to insert into the list |
|
pos |
Position to insert into (0 for start of list, -1 to append) |
Since: 1.1.0
gboolean ipatch_list_remove (IpatchList *list
,GObject *object
);
Remove an object from an IpatchList.
Since: 1.1.0
void ipatch_list_init_iter (IpatchList *list
,IpatchIter *iter
);
Initializes a user supplied iterator (usually stack allocated) to iterate
over the object list
. Further operations on iter
will use the list
.
[skip]