GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
Data Fields
gp_widget_json_addr Struct Reference

A structure to pass widget callbacks. More...

#include <gp_widget_json.h>

Collaboration diagram for gp_widget_json_addr:
Collaboration graph
[legend]

Data Fields

const char * id
 A callback name used to resolve the target widget on runtime.
 

Detailed Description

A structure to pass widget callbacks.

The pointers to application callbacks can either be resolved by the dynamic linker at runtime, or can be explicitly passed in this table. The table has to be sorted by id and NULL id terminted.

Example use:

static const gp_widget_json_addr app_callbacks[] = {
{.id = "abort", .on_event = abort_on_event},
{.id = "file_table", .table_col_ops = file_table_ops},
{}
};
A structure to pass widget callbacks.
const char * id
A callback name used to resolve the target widget on runtime.

Definition at line 43 of file gp_widget_json.h.


The documentation for this struct was generated from the following file: