display_event_window_type_id()

Get the window type ID that corresponds to the specified string.

Synopsis:

#include <hnm/display_event.h>
 
hnm_WindowTypeID display_event_window_type_id(const char *type_string)

Arguments:

type_string

The JSON string used to represent the window type.

Library:

libhnm

Description:

This function has worst-case complexity of O(m*n) where m is the average length of the window type string and n is the number of window types defined.

Returns:

An hnm_WindowTypeID that corresponds to the specified window type string. If no corresponding window type is found, HNM_WINDOW_HIDDEN is returned.