GTS Library Reference Manual |
---|
#include <gts.h> #define GTS_CONTAINEE_CLASS (klass) #define GTS_CONTAINEE (obj) #define GTS_IS_CONTAINEE (obj) struct GtsContaineeClass; struct GtsContainee; GtsContaineeClass* gts_containee_class (void); GtsContainee* gts_containee_new (GtsContaineeClass *klass);gboolean gts_containee_is_contained (GtsContainee *item, GtsContainer *c); void gts_containee_replace (GtsContainee *item, GtsContainee *with); #define GTS_SLIST_CONTAINEE_CLASS (klass) #define GTS_SLIST_CONTAINEE (obj) #define GTS_IS_SLIST_CONTAINEE (obj) struct GtsSListContaineeClass; struct GtsSListContainee; GtsSListContaineeClass* gts_slist_containee_class (void);
struct GtsContaineeClass { GtsObjectClass parent_class; void (* add_container) (GtsContainee *, GtsContainer *); void (* remove_container) (GtsContainee *, GtsContainer *); void (* foreach) (GtsContainee *, GtsFunc, gpointer); gboolean (* is_contained) (GtsContainee *, GtsContainer *); void (* replace) (GtsContainee *, GtsContainee *); };
struct GtsContainee { GtsObject object; };
The containee object.
GtsObject object | The parent object. |
gboolean gts_containee_is_contained (GtsContainee *item, GtsContainer *c);
item : | |
c : | |
Returns : |
|
void gts_containee_replace (GtsContainee *item, GtsContainee *with);
item : | |
with : |
|
struct GtsSListContainee { GtsContainee containee; GSList * containers; };
The singly-linked list containee object.
GtsContainee containee | The parent object. |
containers | A list of GtsContainer containing this object. |
<<< Container classes | Points >>> |