gobj_write_bool_attr()

gobj_write_bool_attr()#

Sets the boolean attribute of a hgobj instance to the specified value.

Prototype

int gobj_write_bool_attr(
    hgobj gobj, 
    const char *name, 
    BOOL value
);

Parameters

Key

Type

Description

gobj

hgobj

The hgobj instance whose attribute is being modified.

name

const char *

The name of the attribute to modify.

value

BOOL

The boolean value to set for the attribute.


Return Value

Returns 0 on success, or -1 if the attribute is not found.

Notes

If the attribute is found, it is updated with the new boolean value. If the hgobj has a mt_writing method, it is called after updating the attribute.

Prototype

// Not applicable in JS

Prototype

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