GTS Library Reference Manual |
---|
#include <gts.h> #define GTS_CONTAINEE_CLASS (klass) #define GTS_CONTAINEE (obj) #define GTS_IS_CONTAINEE (obj) GtsContaineeClass; 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) GtsSListContaineeClass; GtsSListContainee; GtsSListContaineeClass* gts_slist_containee_class (void);
typedef struct { 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 *); } GtsContaineeClass;
typedef struct { GtsObject object; } GtsContainee;
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 : |
|
typedef struct { GtsContainee containee; GSList * containers; } GtsSListContainee;
The singly-linked list containee object.
GtsContainee containee ; | The parent object. |
containers ; | A list of GtsContainer containing this object. |
<<< Container classes | Points >>> |