|
libRocket
|
#include <Plugin.h>
Public Types | |
| enum | EventClasses { EVT_BASIC = (1 << 0), EVT_DOCUMENT = (1 << 1), EVT_ELEMENT = (1 << 2), EVT_ALL = EVT_BASIC | EVT_DOCUMENT | EVT_ELEMENT } |
Public Member Functions | |
| virtual | ~Plugin () |
| virtual int | GetEventClasses () |
| virtual void | OnInitialise () |
| virtual void | OnShutdown () |
| Called when Rocket shuts down. More... | |
| virtual void | OnContextCreate (Context *context) |
| Called when a new context is created. More... | |
| virtual void | OnContextDestroy (Context *context) |
| Called when a context is destroyed. More... | |
| virtual void | OnDocumentOpen (Context *context, const String &document_path) |
| Called when a document load request occurs, before the document's file is opened. More... | |
| virtual void | OnDocumentLoad (ElementDocument *document) |
| virtual void | OnDocumentUnload (ElementDocument *document) |
| virtual void | OnElementCreate (Element *element) |
| Called when a new element is created. More... | |
| virtual void | OnElementDestroy (Element *element) |
| Called when an element is destroyed. More... | |
Generic Interface for plugins to Rocket.
|
virtual |
|
virtual |
Called when the plugin is registered to determine which of the above event types the plugin is interested in
Reimplemented in Rocket::Core::Lua::Interpreter.
|
virtual |
Called when a new context is created.
|
virtual |
Called when a context is destroyed.
|
virtual |
Called when a document is successfully loaded from file or instanced, initialised and added to its context. This is called before the document's 'load' event.
|
virtual |
Called when a document load request occurs, before the document's file is opened.
|
virtual |
Called when a document is unloaded from its context. This is called after the document's 'unload' event.
|
virtual |
Called when a new element is created.
|
virtual |
Called when an element is destroyed.
|
virtual |
Called when Rocket is initialised, or immediately when the plugin registers itself if Rocket has already been initialised.
Reimplemented in Rocket::Core::Lua::Interpreter.
|
virtual |
Called when Rocket shuts down.
Reimplemented in Rocket::Core::Lua::Interpreter.
1.8.8