gobj_write_real_attr()#
The function gobj_write_real_attr() sets the value of a real (floating-point) attribute in the given hgobj object. The attribute must exist and be of type DTP_REAL.
Prototype
int gobj_write_real_attr(
hgobj gobj,
const char *name,
double value
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
A handle to the |
|
|
The name of the attribute to modify. It must be of type |
|
|
The new floating-point value to assign to the attribute. |
Return Value
Returns 0 on success, or -1 if the attribute does not exist or is not of type DTP_REAL.
Notes
If the attribute exists and is writable, its value is updated. 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