gclass_has_attr()

gclass_has_attr()#

Checks if the given gclass contains an attribute with the specified name.

Prototype

BOOL gclass_has_attr(
    hgclass gclass,
    const char *name
);

Parameters

Key

Type

Description

gclass

hgclass

The gclass to check for the attribute.

name

const char *

The name of the attribute to search for.


Return Value

Returns TRUE if the attribute exists in the gclass, otherwise returns FALSE.

Notes

This function performs a case-sensitive search for the attribute name.

Prototype

// Not applicable in JS

Prototype

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