Changes between Version 1 and Version 2 of documentation/C++Manual/Plugins
- Timestamp:
- 04/01/08 12:40:51 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
documentation/C++Manual/Plugins
v1 v2 11 11 // Called when Rocket is initialised. 12 12 virtual void OnInitialise(); 13 14 13 // Called when Rocket shuts down. 15 14 virtual void OnShutdown(); 16 15 16 // Called when a document load request occurs, before the document's file is opened. 17 virtual void OnDocumentOpen(Context* context, const EMP::Core::String& document_path); 18 // 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. 19 virtual void OnDocumentLoad(ElementDocument* document); 20 // Called when a document is unloaded from its context. This is called after the document's 'unload' event. 21 virtual void OnDocumentUnload(ElementDocument* document); 22 17 23 // Called when a new context is created. 18 24 virtual void OnContextCreate(Rocket::Core::Context* context); 19 20 25 // Called when a context is destroyed. 21 26 virtual void OnContextDestroy(Rocket::Core::Context* context); 23 28 // Called when a new element is created. 24 29 virtual void OnElementCreate(Rocket::Core::Element* element); 25 26 30 // Called when an element is destroyed. 27 31 virtual void OnElementDestroy(Rocket::Core::Element* element); 33 37 34 38 OnShutdown() is called on all registered plugins when Rocket is shut down, immediately after all the contexts and elements are destroyed. Plugins must release any resources they have allocated, including themselves, during this call. 39 40 === Document events === 41 42 OnDocumentOpen is called when a RML stream is opened, Load/Unload are global callbacks called before and after the documents load/unload respectively. 35 43 36 44 === Context events ===