ImGuiLogSink.ixx File
Log sink that forwards messages to a LogWidget. More...
Included Headers
#include <string>
#include <helios.ext.imgui.widgets.LogWidget>
#include <helios.util.log.LogSink>
Namespaces Index
| namespace | helios |
| namespace | ext |
|
Platform-specific extensions and backend implementations. More... | |
| 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::ext::imgui {
32 class ImGuiLogSink : public helios::util::log::LogSink {
38 widgets::LogWidget* widget_ = nullptr;
44 static constexpr helios::util::log::SinkTypeId TYPE_ID = "imgui";
52 explicit ImGuiLogSink(widgets::LogWidget* widget)
60 [[nodiscard]] helios::util::log::SinkTypeId typeId() const noexcept override {
61 return TYPE_ID;
71 void write(helios::util::log::LogLevel level,
77 widgets::LogLevel widgetLevel;
79 case helios::util::log::LogLevel::Debug:
80 widgetLevel = widgets::LogLevel::Debug; break;
81 case helios::util::log::LogLevel::Info:
82 widgetLevel = widgets::LogLevel::Info; break;
83 case helios::util::log::LogLevel::Warn:
84 widgetLevel = widgets::LogLevel::Warn; break;
85 case helios::util::log::LogLevel::Error:
86 widgetLevel = widgets::LogLevel::Error; break;
88 widgetLevel = widgets::LogLevel::Info;
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.