StBin: St Reference Manual

## StBin StBin — a simple container with one actor |

## Functions

StWidget * | st_bin_new ()
void | st_bin_set_child ()
ClutterActor * | st_bin_get_child ()

## Types and Values

#define | ST_TYPE_BIN
struct | StBinClass
| StBin

## Description

StBin is a simple container capable of having only one ClutterActor as a child.

StBin inherits from StWidget, so it is fully themable.

## Functions

### st_bin_new ()

    StWidget *
    st_bin_new (void);

Creates a new StBin, a simple container for one child.

#### Returns

the newly created StBin actor

### st_bin_set_child ()

    void
    st_bin_set_child (StBin *bin,
                      ClutterActor *child);

Sets `child` as the child of `bin` .

If `bin` already has a child, the previous child is removed.

#### Parameters

bin | a StBin |
child | a ClutterActor, or `NULL`. | [nullable]

### st_bin_get_child ()

    ClutterActor *
    st_bin_get_child (StBin *bin);

Gets the ClutterActor child for `bin` .

#### Parameters

bin | a StBin |

#### Returns

a ClutterActor, or `NULL`.

[transfer none][nullable]

## Types and Values

### ST_TYPE_BIN

    #define ST_TYPE_BIN                   (st_bin_get_type ())

### struct StBinClass

    struct StBinClass {
    };

The StBinClass struct contains only private data

### StBin

    typedef struct _StBin StBin;