gobj_create2()
#
Creates a new GObj instance with customizable flags to modify its behavior.
Prototype
#define gobj_create2(name, gclass, kw, parent, gobj_flag) \
gobj_create_gobj(name, gclass, kw, parent, gobj_flag)
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The name of the GObj to be created. |
|
The name of the GClass from which the GObj will be instantiated. |
|
|
JSON object containing the attributes for initializing the GObj. This parameter is owned by the function. |
|
|
Handle to the parent GObj. If |
|
|
Flags to modify the behavior of the GObj (e.g., |
Return Value
Returns the handle (
hgobj
) to the created 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