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

Namespaces

 Font
 
 Input
 
 Lua
 
 Math
 
 Python
 

Classes

class  BaseXMLParser
 
class  Box
 
class  Colour
 
class  Context
 
class  ContextInstancer
 
class  ConvolutionFilter
 
class  Decorator
 
class  DecoratorInstancer
 
class  Dictionary
 
class  Element
 
class  ElementDocument
 
class  ElementInstancer
 
class  ElementInstancerGeneric
 
class  ElementReference
 
class  ElementScroll
 
class  ElementText
 
class  ElementUtilities
 
class  Event
 
class  EventInstancer
 
class  EventListener
 
class  EventListenerInstancer
 
class  Factory
 
class  FileInterface
 
class  FontDatabase
 
class  FontEffect
 
class  FontEffectInstancer
 
class  FontGlyph
 
class  Geometry
 
class  GeometryUtilities
 
class  Log
 
class  Plugin
 
class  Property
 
class  PropertyDefinition
 
class  PropertyDictionary
 
class  PropertyParser
 
class  PropertySpecification
 
class  ReferenceCountable
 
class  RenderInterface
 
class  ScriptInterface
 
struct  STATIC_ASSERTION_FAILURE
 
struct  STATIC_ASSERTION_FAILURE< true >
 
class  Stream
 
class  StreamMemory
 
class  StringBase
 
class  StringUtilities
 
class  StyleSheet
 
class  StyleSheetSpecification
 
class  SystemInterface
 
struct  Texture
 
class  TypeConverter
 
class  TypeConverter< bool, String >
 
class  TypeConverter< byte, String >
 
class  TypeConverter< char *, String >
 
class  TypeConverter< int, String >
 
class  TypeConverter< Stream, Stream >
 
class  TypeConverter< Stream, T >
 
class  TypeConverter< String, bool >
 
class  TypeConverter< String, byte >
 
class  TypeConverter< String, int >
 
class  TypeConverter< String, unsigned int >
 
class  TypeConverter< String, URL >
 
class  TypeConverter< T, Stream >
 
class  TypeConverter< unsigned int, String >
 
class  TypeConverter< URL, String >
 
class  TypeConverterStringVector
 
class  TypeConverterVectorString
 
class  URL
 
class  Variant
 
class  Vector2
 
struct  Vertex
 
class  WString
 
class  XMLNodeHandler
 
class  XMLParser
 

Typedefs

typedef Dictionary XMLAttributes
 
typedef std::vector< FontEffect * > FontEffectList
 
typedef std::map< String,
FontEffect * > 
FontEffectMap
 
typedef std::vector< FontGlyph > FontGlyphList
 
typedef std::vector< Geometry > GeometryList
 
typedef Vector2< int > Vector2i
 
typedef Vector2< float > Vector2f
 
typedef Vector3< int > Vector3i
 
typedef Vector3< float > Vector3f
 
typedef Vector4< int > Vector4i
 
typedef Vector4< float > Vector4f
 
typedef std::map< String,
Property > 
PropertyMap
 
typedef std::map< String, int,
StringUtilities::StringComparei > 
ParameterMap
 
typedef StringBase< char > String
 
typedef std::vector< String > StringList
 
typedef ScriptInterface * ScriptInterfacePtr
 
typedef void * voidPtr
 
typedef unsigned char byte
 
typedef unsigned short word
 
typedef double Time
 
typedef float TimeDelta
 
typedef unsigned int Hash
 
typedef void * ScriptObject
 
typedef Colour< float, 1 > Colourf
 
typedef Colour< byte, 255 > Colourb
 
typedef uintptr_t FileHandle
 
typedef uintptr_t TextureHandle
 
typedef uintptr_t CompiledGeometryHandle
 
typedef uintptr_t DecoratorDataHandle
 
typedef std::vector< Element * > ElementList
 
typedef std::set< String > PseudoClassList
 
typedef std::set< String > PropertyNameList
 
typedef std::set< String > AttributeNameList
 
typedef Dictionary ElementAttributes
 
typedef StringBase< word > WStringBase
 

Functions

ROCKETCORE_API bool Initialise ()
 Initialises Rocket. More...
 
ROCKETCORE_API void Shutdown ()
 Shutdown Rocket. More...
 
ROCKETCORE_API String GetVersion ()
 
ROCKETCORE_API void SetSystemInterface (SystemInterface *system_interface)
 
ROCKETCORE_API SystemInterface * GetSystemInterface ()
 
ROCKETCORE_API void SetRenderInterface (RenderInterface *render_interface)
 
ROCKETCORE_API RenderInterface * GetRenderInterface ()
 
ROCKETCORE_API void SetFileInterface (FileInterface *file_interface)
 
ROCKETCORE_API FileInterface * GetFileInterface ()
 
ROCKETCORE_API Context * CreateContext (const String &name, const Vector2i &dimensions, RenderInterface *render_interface=NULL)
 
ROCKETCORE_API Context * GetContext (const String &name)
 
ROCKETCORE_API Context * GetContext (int index)
 
ROCKETCORE_API int GetNumContexts ()
 
ROCKETCORE_API void RegisterPlugin (Plugin *plugin)
 Registers a generic Rocket plugin. More...
 
ROCKETCORE_API void ReleaseCompiledGeometries ()
 Forces all compiled geometry handles generated by libRocket to be released. More...
 
ROCKETCORE_API void ReleaseTextures ()
 Forces all texture handles loaded and generated by libRocket to be released. More...
 
bool ROCKETCORE_API Assert (const char *message, const char *file, int line)
 
ROCKETCORE_API Vector2i operator* (int lhs, const Vector2i &rhs)
 
ROCKETCORE_API Vector2f operator* (float lhs, const Vector2f &rhs)
 
ROCKETCORE_API Vector3i operator* (int lhs, const Vector3i &rhs)
 
ROCKETCORE_API Vector3f operator* (float lhs, const Vector3f &rhs)
 
ROCKETCORE_API Vector4i operator* (int lhs, const Vector4i &rhs)
 
ROCKETCORE_API Vector4f operator* (float lhs, const Vector4f &rhs)
 
ROCKETCORE_API String operator+ (const char *cstring, const String &string)
 
 PASS_THROUGH (int)
 
 PASS_THROUGH (unsigned int)
 
 PASS_THROUGH (float)
 
 PASS_THROUGH (bool)
 
 PASS_THROUGH (char)
 
 PASS_THROUGH (word)
 
 PASS_THROUGH (Vector2i)
 
 PASS_THROUGH (Vector2f)
 
 PASS_THROUGH (Colourf)
 
 PASS_THROUGH (Colourb)
 
 PASS_THROUGH (String)
 
 PASS_THROUGH (ScriptInterfacePtr)
 
 PASS_THROUGH (voidPtr)
 
 BASIC_CONVERTER (bool, int)
 
 BASIC_CONVERTER (bool, unsigned int)
 
 BASIC_CONVERTER (bool, float)
 
 BASIC_CONVERTER (int, unsigned int)
 
 BASIC_CONVERTER_BOOL (int, bool)
 
 BASIC_CONVERTER (int, float)
 
 BASIC_CONVERTER_BOOL (float, bool)
 
 BASIC_CONVERTER (float, int)
 
 BASIC_CONVERTER (float, unsigned int)
 
 BASIC_CONVERTER (char, word)
 
 STRING_FLOAT_CONVERTER (float)
 
 STRING_FLOAT_CONVERTER (double)
 
 STRING_VECTOR_CONVERTER (Vector2i, int, 2)
 
 STRING_VECTOR_CONVERTER (Vector2f, float, 2)
 
 STRING_VECTOR_CONVERTER (Colourf, float, 4)
 
 STRING_VECTOR_CONVERTER (Colourb, byte, 4)
 
 FLOAT_STRING_CONVERTER (float)
 
 FLOAT_STRING_CONVERTER (double)
 
 VECTOR_STRING_CONVERTER (Vector2i, int, 2)
 
 VECTOR_STRING_CONVERTER (Vector2f, float, 2)
 
 VECTOR_STRING_CONVERTER (Colourf, float, 4)
 
 VECTOR_STRING_CONVERTER (Colourb, byte, 4)
 

Variables

const int POSITION_STATIC = 0
 
const int POSITION_RELATIVE = 1
 
const int POSITION_ABSOLUTE = 2
 
const int POSITION_FIXED = 3
 
const int FLOAT_NONE = 0
 
const int FLOAT_LEFT = 1
 
const int FLOAT_RIGHT = 2
 
const int CLEAR_NONE = 0
 
const int CLEAR_LEFT = 1
 
const int CLEAR_RIGHT = 2
 
const int CLEAR_BOTH = 3
 
const int DISPLAY_NONE = 0
 
const int DISPLAY_BLOCK = 1
 
const int DISPLAY_INLINE = 2
 
const int DISPLAY_INLINE_BLOCK = 3
 
const int VISIBILITY_VISIBLE = 0
 
const int VISIBILITY_HIDDEN = 1
 
const int OVERFLOW_VISIBLE = 0
 
const int OVERFLOW_HIDDEN = 1
 
const int OVERFLOW_AUTO = 2
 
const int OVERFLOW_SCROLL = 3
 
const int CLIP_AUTO = 0
 
const int CLIP_NONE = 1
 
const int FONT_STYLE_NORMAL = 0
 
const int FONT_STYLE_ITALIC = 1
 
const int FONT_WEIGHT_NORMAL = 0
 
const int FONT_WEIGHT_BOLD = 1
 
const int TEXT_ALIGN_LEFT = 0
 
const int TEXT_ALIGN_RIGHT = 1
 
const int TEXT_ALIGN_CENTER = 2
 
const int TEXT_ALIGN_JUSTIFY = 3
 
const int TEXT_DECORATION_NONE = 0
 
const int TEXT_DECORATION_UNDERLINE = 1
 
const int TEXT_DECORATION_OVERLINE = 2
 
const int TEXT_DECORATION_LINE_THROUGH = 3
 
const int TEXT_TRANSFORM_NONE = 0
 
const int TEXT_TRANSFORM_CAPITALIZE = 1
 
const int TEXT_TRANSFORM_UPPERCASE = 2
 
const int TEXT_TRANSFORM_LOWERCASE = 3
 
const int WHITE_SPACE_NORMAL = 0
 
const int WHITE_SPACE_PRE = 1
 
const int WHITE_SPACE_NOWRAP = 2
 
const int WHITE_SPACE_PRE_WRAP = 3
 
const int WHITE_SPACE_PRE_LINE = 4
 
const int VERTICAL_ALIGN_BASELINE = 0
 
const int VERTICAL_ALIGN_MIDDLE = 1
 
const int VERTICAL_ALIGN_SUB = 2
 
const int VERTICAL_ALIGN_SUPER = 3
 
const int VERTICAL_ALIGN_TEXT_TOP = 4
 
const int VERTICAL_ALIGN_TEXT_BOTTOM = 5
 
const int VERTICAL_ALIGN_TOP = 6
 
const int VERTICAL_ALIGN_BOTTOM = 7
 
const int Z_INDEX_AUTO = 0
 
const int Z_INDEX_TOP = 1
 
const int Z_INDEX_BOTTOM = 2
 
const int DRAG_NONE = 0
 
const int DRAG_DRAG = 1
 
const int DRAG_DRAG_DROP = 2
 
const int DRAG_BLOCK = 3
 
const int DRAG_CLONE = 4
 
const int TAB_INDEX_NONE = 0
 
const int TAB_INDEX_AUTO = 1
 
const int FOCUS_NONE = 0
 
const int FOCUS_AUTO = 1
 

Typedef Documentation

typedef unsigned char Rocket::Core::byte
typedef Colour< float, 1 > Rocket::Core::Colourf
typedef std::vector< Element* > Rocket::Core::ElementList
typedef uintptr_t Rocket::Core::FileHandle
typedef std::vector< FontEffect* > Rocket::Core::FontEffectList
typedef std::vector< FontGlyph > Rocket::Core::FontGlyphList
typedef std::vector< Geometry > Rocket::Core::GeometryList
typedef unsigned int Rocket::Core::Hash
typedef std::vector< String > Rocket::Core::StringList
typedef uintptr_t Rocket::Core::TextureHandle
typedef double Rocket::Core::Time
typedef float Rocket::Core::TimeDelta
typedef Vector2< float > Rocket::Core::Vector2f
typedef Vector3< float > Rocket::Core::Vector3f
typedef Vector3< int > Rocket::Core::Vector3i
typedef Vector4< float > Rocket::Core::Vector4f
typedef Vector4< int > Rocket::Core::Vector4i
typedef void* Rocket::Core::voidPtr
typedef unsigned short Rocket::Core::word

Function Documentation

bool ROCKETCORE_API Rocket::Core::Assert ( const char *  message,
const char *  file,
int  line 
)
Rocket::Core::BASIC_CONVERTER ( bool  ,
int   
)
Rocket::Core::BASIC_CONVERTER ( bool  ,
unsigned  int 
)
Rocket::Core::BASIC_CONVERTER ( bool  ,
float   
)
Rocket::Core::BASIC_CONVERTER ( int  ,
unsigned  int 
)
Rocket::Core::BASIC_CONVERTER ( int  ,
float   
)
Rocket::Core::BASIC_CONVERTER ( float  ,
int   
)
Rocket::Core::BASIC_CONVERTER ( float  ,
unsigned  int 
)
Rocket::Core::BASIC_CONVERTER ( char  ,
word   
)
Rocket::Core::BASIC_CONVERTER_BOOL ( int  ,
bool   
)
Rocket::Core::BASIC_CONVERTER_BOOL ( float  ,
bool   
)
ROCKETCORE_API Context* Rocket::Core::CreateContext ( const String &  name,
const Vector2i &  dimensions,
RenderInterface *  render_interface = NULL 
)

Creates a new element context.

Parameters
[in]nameThe new name of the context. This must be unique.
[in]dimensionsThe initial dimensions of the new context.
[in]render_interfaceThe custom render interface to use, or NULL to use the default.
Returns
The new context, or NULL if the context could not be created.
Rocket::Core::FLOAT_STRING_CONVERTER ( float  )
Rocket::Core::FLOAT_STRING_CONVERTER ( double  )
ROCKETCORE_API Context* Rocket::Core::GetContext ( const String &  name)

Fetches a previously constructed context by name.

Parameters
[in]nameThe name of the desired context.
Returns
The desired context, or NULL if no context exists with the given name.
ROCKETCORE_API Context* Rocket::Core::GetContext ( int  index)

Fetches a context by index.

Parameters
[in]indexThe index of the desired context. If this is outside of the valid range of contexts, it will be clamped.
Returns
The requested context, or NULL if no contexts exist.
ROCKETCORE_API FileInterface* Rocket::Core::GetFileInterface ( )

Returns Rocket's file interface.

Returns
Rocket's file interface.
ROCKETCORE_API int Rocket::Core::GetNumContexts ( )

Returns the number of active contexts.

Returns
The total number of active Rocket contexts.
ROCKETCORE_API RenderInterface* Rocket::Core::GetRenderInterface ( )

Returns Rocket's default's render interface.

Returns
Rocket's render interface.
ROCKETCORE_API SystemInterface* Rocket::Core::GetSystemInterface ( )

Returns Rocket's system interface.

Returns
Rocket's system interface.
ROCKETCORE_API String Rocket::Core::GetVersion ( )

Returns the version of this Rocket library.

Returns
The version number.
ROCKETCORE_API bool Rocket::Core::Initialise ( )

Initialises Rocket.

Rocket library core API.

Author
Peter Curry
ROCKETCORE_API Vector2i Rocket::Core::operator* ( int  lhs,
const Vector2i &  rhs 
)
ROCKETCORE_API Vector2f Rocket::Core::operator* ( float  lhs,
const Vector2f &  rhs 
)
ROCKETCORE_API Vector3i Rocket::Core::operator* ( int  lhs,
const Vector3i &  rhs 
)
ROCKETCORE_API Vector3f Rocket::Core::operator* ( float  lhs,
const Vector3f &  rhs 
)
ROCKETCORE_API Vector4i Rocket::Core::operator* ( int  lhs,
const Vector4i &  rhs 
)
ROCKETCORE_API Vector4f Rocket::Core::operator* ( float  lhs,
const Vector4f &  rhs 
)
ROCKETCORE_API String Rocket::Core::operator+ ( const char *  cstring,
const String &  string 
)
Rocket::Core::PASS_THROUGH ( int  )
Rocket::Core::PASS_THROUGH ( unsigned  int)
Rocket::Core::PASS_THROUGH ( float  )
Rocket::Core::PASS_THROUGH ( bool  )
Rocket::Core::PASS_THROUGH ( char  )
Rocket::Core::PASS_THROUGH ( word  )
Rocket::Core::PASS_THROUGH ( Vector2i  )
Rocket::Core::PASS_THROUGH ( Vector2f  )
Rocket::Core::PASS_THROUGH ( Colourf  )
Rocket::Core::PASS_THROUGH ( Colourb  )
Rocket::Core::PASS_THROUGH ( String  )
Rocket::Core::PASS_THROUGH ( ScriptInterfacePtr  )
Rocket::Core::PASS_THROUGH ( voidPtr  )
ROCKETCORE_API void Rocket::Core::RegisterPlugin ( Plugin *  plugin)

Registers a generic Rocket plugin.

ROCKETCORE_API void Rocket::Core::ReleaseCompiledGeometries ( )

Forces all compiled geometry handles generated by libRocket to be released.

ROCKETCORE_API void Rocket::Core::ReleaseTextures ( )

Forces all texture handles loaded and generated by libRocket to be released.

ROCKETCORE_API void Rocket::Core::SetFileInterface ( FileInterface *  file_interface)

Sets the interface through which all file I/O requests are made. This is not required to be called, but if it is it must be called before Initialise().

Parameters
[in]file_interfaceThe application-specified file interface
ROCKETCORE_API void Rocket::Core::SetRenderInterface ( RenderInterface *  render_interface)

Sets the interface through which all rendering requests are made. This is not required to be called, but if it is it must be called before Initialise(). If no render interface is specified, then all contexts must have a custom render interface.

Parameters
[in]render_interfaceRender interface implementation.
ROCKETCORE_API void Rocket::Core::SetSystemInterface ( SystemInterface *  system_interface)

Sets the interface through which all system requests are made. This must be called before Initialise().

Parameters
[in]system_interfaceThe application-specified logging interface.
ROCKETCORE_API void Rocket::Core::Shutdown ( )

Shutdown Rocket.

Rocket::Core::STRING_FLOAT_CONVERTER ( float  )
Rocket::Core::STRING_FLOAT_CONVERTER ( double  )
Rocket::Core::STRING_VECTOR_CONVERTER ( Vector2i  ,
int  ,
2   
)
Rocket::Core::STRING_VECTOR_CONVERTER ( Vector2f  ,
float  ,
2   
)
Rocket::Core::STRING_VECTOR_CONVERTER ( Colourf  ,
float  ,
4   
)
Rocket::Core::STRING_VECTOR_CONVERTER ( Colourb  ,
byte  ,
4   
)
Rocket::Core::VECTOR_STRING_CONVERTER ( Vector2i  ,
int  ,
2   
)
Rocket::Core::VECTOR_STRING_CONVERTER ( Vector2f  ,
float  ,
2   
)
Rocket::Core::VECTOR_STRING_CONVERTER ( Colourf  ,
float  ,
4   
)
Rocket::Core::VECTOR_STRING_CONVERTER ( Colourb  ,
byte  ,
4   
)

Variable Documentation

const int Rocket::Core::CLEAR_BOTH = 3
const int Rocket::Core::CLEAR_LEFT = 1
const int Rocket::Core::CLEAR_NONE = 0
const int Rocket::Core::CLEAR_RIGHT = 2
const int Rocket::Core::CLIP_AUTO = 0
const int Rocket::Core::CLIP_NONE = 1
const int Rocket::Core::DISPLAY_BLOCK = 1
const int Rocket::Core::DISPLAY_INLINE = 2
const int Rocket::Core::DISPLAY_INLINE_BLOCK = 3
const int Rocket::Core::DISPLAY_NONE = 0
const int Rocket::Core::DRAG_BLOCK = 3
const int Rocket::Core::DRAG_CLONE = 4
const int Rocket::Core::DRAG_DRAG = 1
const int Rocket::Core::DRAG_DRAG_DROP = 2
const int Rocket::Core::DRAG_NONE = 0
const int Rocket::Core::FLOAT_LEFT = 1
const int Rocket::Core::FLOAT_NONE = 0
const int Rocket::Core::FLOAT_RIGHT = 2
const int Rocket::Core::FOCUS_AUTO = 1
const int Rocket::Core::FOCUS_NONE = 0
const int Rocket::Core::FONT_STYLE_ITALIC = 1
const int Rocket::Core::FONT_STYLE_NORMAL = 0
const int Rocket::Core::FONT_WEIGHT_BOLD = 1
const int Rocket::Core::FONT_WEIGHT_NORMAL = 0
const int Rocket::Core::OVERFLOW_AUTO = 2
const int Rocket::Core::OVERFLOW_HIDDEN = 1
const int Rocket::Core::OVERFLOW_SCROLL = 3
const int Rocket::Core::OVERFLOW_VISIBLE = 0
const int Rocket::Core::POSITION_ABSOLUTE = 2
const int Rocket::Core::POSITION_FIXED = 3
const int Rocket::Core::POSITION_RELATIVE = 1
const int Rocket::Core::POSITION_STATIC = 0
const int Rocket::Core::TAB_INDEX_AUTO = 1
const int Rocket::Core::TAB_INDEX_NONE = 0
const int Rocket::Core::TEXT_ALIGN_CENTER = 2
const int Rocket::Core::TEXT_ALIGN_JUSTIFY = 3
const int Rocket::Core::TEXT_ALIGN_LEFT = 0
const int Rocket::Core::TEXT_ALIGN_RIGHT = 1
const int Rocket::Core::TEXT_DECORATION_LINE_THROUGH = 3
const int Rocket::Core::TEXT_DECORATION_NONE = 0
const int Rocket::Core::TEXT_DECORATION_OVERLINE = 2
const int Rocket::Core::TEXT_DECORATION_UNDERLINE = 1
const int Rocket::Core::TEXT_TRANSFORM_CAPITALIZE = 1
const int Rocket::Core::TEXT_TRANSFORM_LOWERCASE = 3
const int Rocket::Core::TEXT_TRANSFORM_NONE = 0
const int Rocket::Core::TEXT_TRANSFORM_UPPERCASE = 2
const int Rocket::Core::VERTICAL_ALIGN_BASELINE = 0
const int Rocket::Core::VERTICAL_ALIGN_BOTTOM = 7
const int Rocket::Core::VERTICAL_ALIGN_MIDDLE = 1
const int Rocket::Core::VERTICAL_ALIGN_SUB = 2
const int Rocket::Core::VERTICAL_ALIGN_SUPER = 3
const int Rocket::Core::VERTICAL_ALIGN_TEXT_BOTTOM = 5
const int Rocket::Core::VERTICAL_ALIGN_TEXT_TOP = 4
const int Rocket::Core::VERTICAL_ALIGN_TOP = 6
const int Rocket::Core::VISIBILITY_HIDDEN = 1
const int Rocket::Core::VISIBILITY_VISIBLE = 0
const int Rocket::Core::WHITE_SPACE_NORMAL = 0
const int Rocket::Core::WHITE_SPACE_NOWRAP = 2
const int Rocket::Core::WHITE_SPACE_PRE = 1
const int Rocket::Core::WHITE_SPACE_PRE_LINE = 4
const int Rocket::Core::WHITE_SPACE_PRE_WRAP = 3
const int Rocket::Core::Z_INDEX_AUTO = 0
const int Rocket::Core::Z_INDEX_BOTTOM = 2
const int Rocket::Core::Z_INDEX_TOP = 1