GFXprim
2D bitmap graphics library with emphasis on speed and correctness
|
Widget by unique id lookup. More...
Go to the source code of this file.
Functions | |
gp_widget * | gp_widget_by_uid (gp_htable *uids, const char *uid, enum gp_widget_type type) |
Gets a widget pointer given UIDs hash, an id and type. | |
gp_widget * | gp_widget_by_cuid (gp_htable *uids, const char *uid, enum gp_widget_class widget_class) |
Gets a widget pointer given UIDs hash, an id and widget_class. | |
Widget by unique id lookup.
In the JSON layout widgets can have an unique name. All widgets with unique name are put into a hash table when JSON layout is loaded and can be later looked up by these functions once layout has been loaded.
Definition in file gp_widget_uid.h.
gp_widget * gp_widget_by_cuid | ( | gp_htable * | uids, |
const char * | uid, | ||
enum gp_widget_class | widget_class | ||
) |
Gets a widget pointer given UIDs hash, an id and widget_class.
uids | And UIDs hash filled in the JSON parser. |
uid | A widget unique id. |
widget_class | Widget class. |
gp_widget * gp_widget_by_uid | ( | gp_htable * | uids, |
const char * | uid, | ||
enum gp_widget_type | type | ||
) |
Gets a widget pointer given UIDs hash, an id and type.
uids | And UIDs hash filled in the JSON parser. |
uid | A widget unique id. |
type | Widget type. |