|
virtual bool | initializeStatic () override |
| Initialize extension statically.
|
|
virtual bool | initialize (Context *context) override |
| Initialize extension for the given context.
|
|
virtual const char * | getExtensionKey () const override |
| Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.
|
|
virtual const void * | getPublicAPI () const override |
| Retrieve a pointer to a struct containing all publicly available function pointers.
|
|
virtual bool | initializeStatic () |
| Initialize extension statically.
|
|
virtual bool | initialize (Context *) |
| Initialize extension for the given context.
|
|
virtual void | cleanup (Context *) |
| Cleanup context bound extension content.
|
|
virtual const char * | getExtensionKey () const =0 |
| Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.
|
|
virtual void * | getSymbolPointer (const char *) const |
| Get pointer to symbol defined by extension.
|
|
virtual const void * | getPublicAPI () const |
| Retrieve a pointer to a struct containing all publicly available function pointers.
|
|
Definition at line 178 of file GuiExtension.cpp.
◆ GuiExtension()
Cogs::Core::GuiExtension::GuiExtension |
( |
| ) |
|
|
inline |
◆ getExtensionKey()
virtual const char * Cogs::Core::GuiExtension::getExtensionKey |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the extensions unique key, used to check for extension presence and retrieve extension specific data from the context.
- Returns
- Pointer to a null-terminated string containing the name of the extension.
Implements Cogs::Core::Extension.
Definition at line 215 of file GuiExtension.cpp.
◆ getPublicAPI()
virtual const void * Cogs::Core::GuiExtension::getPublicAPI |
( |
| ) |
const |
|
inlineoverridevirtual |
Retrieve a pointer to a struct containing all publicly available function pointers.
The returned pointer should be cast to the structure type defined by the extension.
Reimplemented from Cogs::Core::Extension.
Definition at line 216 of file GuiExtension.cpp.
◆ initialize()
virtual bool Cogs::Core::GuiExtension::initialize |
( |
Context * |
| ) |
|
|
inlineoverridevirtual |
◆ initializeStatic()
virtual bool Cogs::Core::GuiExtension::initializeStatic |
( |
| ) |
|
|
inlineoverridevirtual |
Initialize extension statically.
Override this method to provide static initialization code. This can for example be filling data tables for later use, registering types in the static type system or other tasks that are only necessary to perform once per application run.
Reimplemented from Cogs::Core::Extension.
Definition at line 193 of file GuiExtension.cpp.
◆ loadHTML()
static ResourceId Cogs::Core::GuiExtension::loadHTML |
( |
Context * |
context, |
|
|
const char * |
path |
|
) |
| |
|
inlinestatic |
◆ setComponentHTML()
static void Cogs::Core::GuiExtension::setComponentHTML |
( |
Context * |
context, |
|
|
GuiComponent * |
component, |
|
|
ResourceId |
id |
|
) |
| |
|
inlinestatic |
◆ setInnerHTML()
static void Cogs::Core::GuiExtension::setInnerHTML |
( |
Context * |
context, |
|
|
GuiComponent * |
component, |
|
|
const char * |
elementId, |
|
|
const char * |
html |
|
) |
| |
|
inlinestatic |
◆ api
Initial value:= {
reinterpret_cast<LoadHTMLFn>(&GuiExtension::loadHTML),
reinterpret_cast<SetComponentHTMLFn>(&GuiExtension::setComponentHTML),
reinterpret_cast<SetInnerHTMLFn>(&GuiExtension::setInnerHTML),
}
Definition at line 182 of file GuiExtension.cpp.
◆ cExtensionKey
constexpr const char* Cogs::Core::GuiExtension::cExtensionKey = "Gui" |
|
staticconstexpr |
The documentation for this struct was generated from the following file: