| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #include "DebuggerSystemInterface.h"
- #include "ElementLog.h"
- namespace Rml {
- namespace Debugger {
- DebuggerSystemInterface::DebuggerSystemInterface(Rml::SystemInterface* _application_interface, ElementLog* _log)
- {
- application_interface = _application_interface;
- log = _log;
- }
- DebuggerSystemInterface::~DebuggerSystemInterface()
- {
- application_interface = nullptr;
- }
- double DebuggerSystemInterface::GetElapsedTime()
- {
- return application_interface->GetElapsedTime();
- }
- int DebuggerSystemInterface::TranslateString(String& translated, const String& input)
- {
- return application_interface->TranslateString(translated, input);
- }
- void DebuggerSystemInterface::JoinPath(String& translated_path, const String& document_path, const String& path)
- {
- application_interface->JoinPath(translated_path, document_path, path);
- }
- bool DebuggerSystemInterface::LogMessage(Log::Type type, const String& message)
- {
- log->AddLogMessage(type, message);
- return application_interface->LogMessage(type, message);
- }
- void DebuggerSystemInterface::SetMouseCursor(const String& cursor_name)
- {
- application_interface->SetMouseCursor(cursor_name);
- }
- void DebuggerSystemInterface::SetClipboardText(const String& text)
- {
- application_interface->SetClipboardText(text);
- }
- void DebuggerSystemInterface::GetClipboardText(String& text)
- {
- application_interface->GetClipboardText(text);
- }
- void DebuggerSystemInterface::ActivateKeyboard(Rml::Vector2f caret_position, float line_height)
- {
- application_interface->ActivateKeyboard(caret_position, line_height);
- }
- void DebuggerSystemInterface::DeactivateKeyboard()
- {
- application_interface->DeactivateKeyboard();
- }
- } // namespace Debugger
- } // namespace Rml
|