Rocket::Core::Python::ContextInterface Class Reference
#include <ContextInterface.h>
Detailed Description
Installs and manages the Python interface for libRocket
Context objects.
- Author:
- Peter Curry
Member Function Documentation
| void Rocket::Core::Python::ContextInterface::AddEventListener |
( |
Context * |
self, |
|
|
const char * |
event, |
|
|
const char * |
script, |
|
|
bool |
in_capture_phase | |
|
) |
| | [static] |
The "AddEventListener" function bound into Python context objects instead of the C++ function.
- Parameters:
-
| [in] | self | The calling context. |
| [in] | event | The event to bind to. |
| [in] | script | The script fragment to execute. |
| [in] | in_capture_phase | True if binding on the capture phase, false if the bubble phase. |
| python::object Rocket::Core::Python::ContextInterface::CreateDocument |
( |
Context * |
self, |
|
|
const char * |
tag | |
|
) |
| | [static] |
The "CreateDocument" function bound into Python context objects instead of the C++ function.
- Parameters:
-
| [in] | self | The calling context. |
| [in] | tag | The tag name for the instanced document. |
- Returns:
- The new document.
| python::object Rocket::Core::Python::ContextInterface::LoadDocument |
( |
Context * |
self, |
|
|
const char * |
document_path | |
|
) |
| | [static] |
The "LoadDocument" function bound into Python context objects instead of the C++ function.
- Parameters:
-
| [in] | self | The calling context. |
| [in] | document_path | The path to load the document from. |
- Returns:
- The loaded document.
| python::object Rocket::Core::Python::ContextInterface::LoadDocumentFromMemory |
( |
Context * |
self, |
|
|
const char * |
stream | |
|
) |
| | [static] |
The "LoadDocument" function bound into Python context objects instead of the C++ function.
- Parameters:
-
| [in] | self | The calling context. |
| [in] | stream | The document stream |
- Returns:
- The loaded document.
| python::object Rocket::Core::Python::ContextInterface::LoadMouseCursor |
( |
Context * |
self, |
|
|
const char * |
document_path | |
|
) |
| | [static] |
The "LoadMouseCursor" function bound into Python context objects instead of the C++ function.
- Parameters:
-
| [in] | self | The calling context. |
| [in] | document_path | The path to load the cursor from. |
- Returns:
- The loaded cursor.
Returns the document proxy object for the 'document' property.
- Parameters:
-
| [in] | self | The calling context. |
- Returns:
- The proxy object.
The documentation for this class was generated from the following files: