SeedContext

SeedContext

Synopsis


#include <seed/seed.h>

typedef             SeedContext;
typedef             SeedGlobalContext;
typedef             SeedContextGroup;
SeedGlobalContext   seed_context_create                 (SeedContextGroup group,
                                                         SeedClass global_class);
SeedGlobalContext   seed_context_ref                    (SeedGlobalContext ctx);
void                seed_context_unref                  (SeedGlobalContext ctx);
SeedObject          seed_context_get_global_object      (SeedContext ctx);
void                seed_prepare_global_context         (SeedContext ctx);

Description

Details

SeedContext

typedef gpointer SeedContext;


SeedGlobalContext

typedef gpointer SeedGlobalContext;


SeedContextGroup

typedef gpointer SeedContextGroup;


seed_context_create ()

SeedGlobalContext   seed_context_create                 (SeedContextGroup group,
                                                         SeedClass global_class);

group :

A SeedContextGroup in which to create the new context, or NULL to create it in the default context group.

global_class :

The SeedClass to use to create the global object, or NULL to create it with the default class.

Returns :

A new SeedContext.

seed_context_ref ()

SeedGlobalContext   seed_context_ref                    (SeedGlobalContext ctx);

Increments the reference count of ctx.

ctx :

A SeedContext.

Returns :

ctx

seed_context_unref ()

void                seed_context_unref                  (SeedGlobalContext ctx);

Decrements the reference count of ctx.

ctx :

A SeedContext.

seed_context_get_global_object ()

SeedObject          seed_context_get_global_object      (SeedContext ctx);

ctx :

A valid SeedContext

Returns :

The global object for ctx.

seed_prepare_global_context ()

void                seed_prepare_global_context         (SeedContext ctx);

ctx :