gobj_create_pure_child()

gobj_create_pure_child()#

Creates a new GObj instance configured as a pure child of the specified parent GObj.
Pure child Gobjs inherit certain behaviors and attributes from their parent.

Prototype

#define gobj_create_pure_child(name, gclass, kw, parent) \
    gobj_create_gobj(name, gclass, kw, parent, gobj_flag_pure_child)

Parameters

Key

Type

Description

name

const char *

The name of the pure child GObj to be created.

gclass

gclass_name_t

The name of the GClass from which the GObj will be instantiated.

kw

json_t *

JSON object containing attributes to initialize the GObj. This parameter is owned by the function.

parent

hgobj

Handle to the parent GObj under which the pure child GObj will be created.

Return Value

  • Returns the handle (hgobj) to the created pure child GObj.

  • Returns NULL if the creation fails.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples