gclass_find_event_type()

gclass_find_event_type()#

Searches for an event in the event list of a given gclass and returns its event type if found.

Prototype

event_type_t *gclass_find_event_type(
    hgclass gclass,
    gobj_event_t event
);

Parameters

Key

Type

Description

gclass

hgclass

The gclass in which to search for the event.

event

gobj_event_t

The event to search for in the gclass event list.


Return Value

A pointer to the event_type_t structure if the event is found, otherwise NULL.

Notes

This function does not check system events. It only searches within the event list of the specified gclass.

Prototype

// Not applicable in JS

Prototype

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