Nebula
Loading...
Searching...
No Matches
RmlUi Namespace Reference

Namespaces

namespace  Api

Classes

struct  ComponentBinding
class  RmlUiContext
 Graphics context plugin for RmlUi (https://github.com/mikke89/RmlUi), an HTML/CSS style UI library and the successor of libRocket. More...
class  RmlUiFileInterface
 Routes RmlUi file access through the nebula IoServer, so assigns and archives work in documents, style sheets and fonts. More...
class  RmlUiInputHandler
 Forwards nebula input events to the RmlUi context. More...
class  RmlUiRenderInterface
 Implements the RmlUi render interface on top of CoreGraphics, modelled on RmlUi's GL3 reference renderer. More...
class  RmlUiSystemInterface
 Time, logging, clipboard and path handling for RmlUi. More...

Functions

 __ImplementPluginContext (RmlUiContext) RmlUiContext
ComponentBinding * BindComponent (const Util::String &model, const Util::String &name, Game::World *world, Game::Entity entity, Game::ComponentId component)
 bind a component of an entity as variable 'name' of an existing data model
void SetBindingEntity (ComponentBinding *binding, Game::Entity entity)
 point a binding at another entity, e.g. when the player character changes
Game::Entity GetBindingEntity (const ComponentBinding *binding)
 get the entity a binding reads from
void UnbindComponents (const Util::String &model)
 release the bindings of a data model, call before removing the model from the context
void UpdateComponentBindings ()
 mark all bound variables dirty, called every frame by RmlUiContext
void DiscardComponentBindings ()
 release all bindings and type definitions, called when RmlUi shuts down
template<typename COMPONENT>
ComponentBinding * BindComponent (const Util::String &model, const Util::String &name, Game::World *world, Game::Entity entity)
 bind a component of an entity as variable 'name' of an existing data model
 __ImplementClass (RmlUi::RmlUiInputHandler, 'RMIH', Input::InputHandler)

Function Documentation

◆ __ImplementClass()

RmlUi::__ImplementClass ( RmlUi::RmlUiInputHandler ,
'RMIH' ,
Input::InputHandler  )

◆ __ImplementPluginContext()

RmlUi::__ImplementPluginContext ( RmlUiContext )

◆ BindComponent() [1/2]

template<typename COMPONENT>
ComponentBinding * RmlUi::BindComponent ( const Util::String & model,
const Util::String & name,
Game::World * world,
Game::Entity entity )
inline

bind a component of an entity as variable 'name' of an existing data model

◆ BindComponent() [2/2]

ComponentBinding * RmlUi::BindComponent ( const Util::String & model,
const Util::String & name,
Game::World * world,
Game::Entity entity,
Game::ComponentId component )

bind a component of an entity as variable 'name' of an existing data model

◆ DiscardComponentBindings()

void RmlUi::DiscardComponentBindings ( )

release all bindings and type definitions, called when RmlUi shuts down

◆ GetBindingEntity()

Game::Entity RmlUi::GetBindingEntity ( const ComponentBinding * binding)

get the entity a binding reads from

◆ SetBindingEntity()

void RmlUi::SetBindingEntity ( ComponentBinding * binding,
Game::Entity entity )

point a binding at another entity, e.g. when the player character changes

◆ UnbindComponents()

void RmlUi::UnbindComponents ( const Util::String & model)

release the bindings of a data model, call before removing the model from the context

◆ UpdateComponentBindings()

void RmlUi::UpdateComponentBindings ( )

mark all bound variables dirty, called every frame by RmlUiContext