|
Engine²
Open-source game engine written in C++.
|
#include <UIContext.hpp>
Classes | |
| struct | InputCallbackIds |
| struct | EventListenerEntry |
Public Member Functions | |
| UIContext ()=default | |
| ~UIContext () override=default | |
| UIContext (const UIContext &)=delete | |
| UIContext & | operator= (const UIContext &)=delete |
| UIContext (UIContext &&) noexcept=default | |
| UIContext & | operator= (UIContext &&) noexcept=default |
| void | Update (Engine::Core &core) override |
| void | Render (Engine::Core &core) override |
| void | Destroy (Engine::Core &core) override |
| void | UpdateMouseMoveEvent (Engine::Core &core) override |
| void | SetFont (const std::string &fontPath) override |
| void | LoadDocument (const std::string &docPath) override |
| bool | LoadOverlayDocument (const std::string &docPath) |
| bool | UnloadOverlayDocument (const std::string &docPath) |
| const std::string & | GetTitle () const override |
| Rml::ElementDocument * | GetDocument () |
| Rml::ElementDocument * | GetOverlayDocument (const std::string &docPath) |
| const Rml::ElementDocument * | GetDocument () const |
| const Rml::ElementDocument * | GetOverlayDocument (const std::string &docPath) const |
| void | EnableDebugger (bool enable) |
| Rml::Element * | GetElementById (const std::string &elementId) |
| bool | RegisterEventListener (Rml::Element &element, const Rml::String &eventType, std::function< void(Rml::Event &)> callback, bool useCapture=false) |
| bool | UnregisterEventListener (Rml::Element &element, const Rml::String &eventType) |
| void | RequestLateUpdate () |
| void | SetInputCallbackIds (const InputCallbackIds &ids) |
| bool | AreInputCallbacksRegistered () const |
| void | SetInputCallbacksRegistered (bool registered) |
| bool | ProcessKey (int key, int action, int mods) override |
| bool | ProcessText (unsigned int codepoint) override |
| bool | ProcessMouseMove (double x, double y, int mods) override |
| bool | ProcessMouseButton (int button, int action, int mods) override |
| bool | ProcessMouseWheel (double xoffset, double yoffset, int mods) override |
| Public Member Functions inherited from Rmlui::Resource::AUIContext | |
| template<CSystemInterface TSystemInterface, CRenderInterface TRenderInterface> | |
| void | Init (Engine::Core &core) |
| virtual | ~AUIContext ()=default |
| AUIContext ()=default | |
| AUIContext (const AUIContext &)=delete | |
| AUIContext & | operator= (const AUIContext &)=delete |
| AUIContext (AUIContext &&) noexcept=default | |
| AUIContext & | operator= (AUIContext &&) noexcept=default |
Protected Member Functions | |
| void | _setup (Engine::Core &core) override |
| Protected Member Functions inherited from Rmlui::Resource::AUIContext | |
| Rml::SystemInterface * | GetSystemInterface () |
| const Rml::SystemInterface * | GetSystemInterface () const |
| Rmlui::Utils::IRenderer * | GetRenderInterface () |
| const Rmlui::Utils::IRenderer * | GetRenderInterface () const |
Private Member Functions | |
| bool | _isReady () const |
Private Attributes | |
| Rml::Context * | _context = nullptr |
| Rml::ElementDocument * | _document = nullptr |
| std::unordered_map< std::string, Rml::ElementDocument * > | _overlayDocuments |
| std::string | _titleCache |
| bool | _debuggerInitialized = false |
| std::vector< EventListenerEntry > | _eventListeners |
| InputCallbackIds | _inputCallbackIds |
| bool | _inputCallbacksRegistered = false |
| bool | _lateUpdateRequested = false |
|
default |
|
overridedefault |
|
delete |
|
defaultnoexcept |
|
private |
|
overrideprotectedvirtual |
Implements Rmlui::Resource::AUIContext.
| bool Rmlui::Resource::UIContext::AreInputCallbacksRegistered | ( | ) | const |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
| void Rmlui::Resource::UIContext::EnableDebugger | ( | bool | enable | ) |
| Rml::ElementDocument * Rmlui::Resource::UIContext::GetDocument | ( | ) |
| const Rml::ElementDocument * Rmlui::Resource::UIContext::GetDocument | ( | ) | const |
| Rml::Element * Rmlui::Resource::UIContext::GetElementById | ( | const std::string & | elementId | ) |
| Rml::ElementDocument * Rmlui::Resource::UIContext::GetOverlayDocument | ( | const std::string & | docPath | ) |
| const Rml::ElementDocument * Rmlui::Resource::UIContext::GetOverlayDocument | ( | const std::string & | docPath | ) | const |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
| bool Rmlui::Resource::UIContext::LoadOverlayDocument | ( | const std::string & | docPath | ) |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
| bool Rmlui::Resource::UIContext::RegisterEventListener | ( | Rml::Element & | element, |
| const Rml::String & | eventType, | ||
| std::function< void(Rml::Event &)> | callback, | ||
| bool | useCapture = false ) |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
| void Rmlui::Resource::UIContext::RequestLateUpdate | ( | ) |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
| void Rmlui::Resource::UIContext::SetInputCallbackIds | ( | const InputCallbackIds & | ids | ) |
| void Rmlui::Resource::UIContext::SetInputCallbacksRegistered | ( | bool | registered | ) |
| bool Rmlui::Resource::UIContext::UnloadOverlayDocument | ( | const std::string & | docPath | ) |
| bool Rmlui::Resource::UIContext::UnregisterEventListener | ( | Rml::Element & | element, |
| const Rml::String & | eventType ) |
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
overridevirtual |
Implements Rmlui::Resource::AUIContext.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |