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 |
---|---|---|
|
|
The |
|
|
The name of the attribute to modify. |
|
|
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