libRocket
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Functions
Rocket::Debugger Namespace Reference

Functions

ROCKETDEBUGGER_API bool Initialise (Core::Context *context)
 
ROCKETDEBUGGER_API bool SetContext (Core::Context *context)
 
ROCKETDEBUGGER_API void SetVisible (bool visibility)
 
ROCKETDEBUGGER_API bool IsVisible ()
 

Function Documentation

ROCKETDEBUGGER_API bool Rocket::Debugger::Initialise ( Core::Context *  context)

Initialises the debug plugin. The debugger will be loaded into the given context.

Parameters
[in]contextThe Rocket context to load the debugger into. The debugging tools will be displayed on this context. If this context is destroyed, the debugger will be released.
Returns
True if the debugger was successfully initialised
ROCKETDEBUGGER_API bool Rocket::Debugger::IsVisible ( )

Returns the visibility of the debugger.

Returns
True if the debugger is visible, false if not.
ROCKETDEBUGGER_API bool Rocket::Debugger::SetContext ( Core::Context *  context)

Sets the context to be debugged.

Parameters
[in]contextThe context to be debugged.
Returns
True if the debugger is initialised and the context was switched, false otherwise.
ROCKETDEBUGGER_API void Rocket::Debugger::SetVisible ( bool  visibility)

Sets the visibility of the debugger.

Parameters
[in]visibilityTrue to show the debugger, false to hide it.