|
AeonGUI
A portable video game graphic user interface library.
|
C API for AeonGUI native plugins. More...
Go to the source code of this file.
Classes | |
| struct | AeonGUI_PluginContext |
| Plugin context passed to OnLoad and OnUnload. More... | |
Macros | |
| #define | AEONGUI_PLUGIN_EXPORT __attribute__((visibility("default"))) |
| Export macro for plugin entry points. | |
Typedefs | |
| typedef struct AeonGUI_Document_s | AeonGUI_Document |
| Opaque handle to a Document. | |
| typedef struct AeonGUI_Element_s | AeonGUI_Element |
| Opaque handle to an Element. | |
| typedef struct AeonGUI_Event_s | AeonGUI_Event |
| Opaque handle to an Event. | |
| typedef void(* | AeonGUI_EventCallback) (AeonGUI_Event *event, void *userData) |
| Callback type for event listeners. | |
| typedef struct AeonGUI_PluginContext | AeonGUI_PluginContext |
| Plugin context passed to OnLoad and OnUnload. | |
| typedef void(* | AeonGUI_OnLoadFunc) (AeonGUI_PluginContext *ctx) |
| Plugin entry point — called after the document is loaded. | |
| typedef void(* | AeonGUI_OnUnloadFunc) (AeonGUI_PluginContext *ctx) |
| Plugin cleanup — called before the document is unloaded. | |
C API for AeonGUI native plugins.
Native plugins are shared libraries loaded via the SVG <script type="native" href="name"/> element.
A plugin must export at least AeonGUI_OnLoad. Optionally it may also export AeonGUI_OnUnload for cleanup.
| typedef void(* AeonGUI_EventCallback) (AeonGUI_Event *event, void *userData) |
Callback type for event listeners.
| event | The event that was dispatched. |
| userData | Opaque pointer passed during registration. |
| typedef void(* AeonGUI_OnLoadFunc) (AeonGUI_PluginContext *ctx) |
Plugin entry point — called after the document is loaded.
The plugin must export this symbol. Use the context to find elements and register event listeners.
| ctx | Plugin context (owned by AeonGUI, do not free). |
| typedef void(* AeonGUI_OnUnloadFunc) (AeonGUI_PluginContext *ctx) |
Plugin cleanup — called before the document is unloaded.
Optional. If exported, AeonGUI calls it to let the plugin release resources before listeners are removed.
| ctx | Same context that was passed to OnLoad. |
| typedef struct AeonGUI_PluginContext AeonGUI_PluginContext |
Plugin context passed to OnLoad and OnUnload.
Contains the document handle and function pointers for interacting with the DOM. The plugin does not need to link against AeonGUI — all calls go through these pointers.