gobj_read_pointer_attr()
#
Retrieves the value of a pointer-type attribute from the given hgobj
. The function searches for the attribute in the object’s hierarchy, following inherited attributes if necessary.
Prototype
void *gobj_read_pointer_attr(
hgobj gobj,
const char *name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The object from which the attribute is read. |
|
|
The name of the attribute to retrieve. |
Return Value
Returns the pointer value of the specified attribute. If the attribute is not found, logs a warning and returns NULL
.
Notes
If the attribute is inherited from a bottom object, gobj_read_pointer_attr()
will traverse the hierarchy to find it.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples