GBin

GBin — One-child object container

Synopsis


#include <gcontainer/gcontainer.h>

                    GBin;

GObject*            g_bin_new                           (void);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GChild
               +----GBin

Implemented Interfaces

GBin implements GChildable and GContainerable.

Description

This is the simplest implementation of the GContainerable interface. A GBin container can only own one GObject that implements the GChildable interface, so internally there is only a private pointer (content) that point to the child instance.

Details

GBin

typedef struct _GBin GBin;

All the fields in the GBin structure are private and should never be accessed directly.


g_bin_new ()

GObject*            g_bin_new                           (void);

Creates a new one-child container.

Returns : a GBin instance