ImGuiLogSink.ixx File
Log sink that forwards messages to a LogWidget. More...
Included Headers
#include <string>
#include <helios.imgui.widgets.LogWidget>
#include <helios.engine.util.log.LogSink>
Namespaces Index
| namespace | helios |
| namespace | imgui |
Classes Index
| class | ImGuiLogSink |
|
LogSink implementation that forwards messages to a LogWidget. More... | |
Description
Log sink that forwards messages to a LogWidget.
File Listing
The file content with the documentation metadata removed is:
14export namespace helios::imgui {
32 class ImGuiLogSink : public helios::engine::util::log::LogSink {
38 widgets::LogWidget* widget_ = nullptr;
52 explicit ImGuiLogSink(widgets::LogWidget* widget)
61 return TYPE_ID;
77 widgets::LogLevel widgetLevel;
80 widgetLevel = widgets::LogLevel::Debug; break;
82 widgetLevel = widgets::LogLevel::Info; break;
84 widgetLevel = widgets::LogLevel::Warn; break;
86 widgetLevel = widgets::LogLevel::Error; break;
88 widgetLevel = widgets::LogLevel::Info;
91 widget_->addLog(widgetLevel, scope, message);
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.