6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../component_batch.hpp"
9#include "../components/color.hpp"
10#include "../components/text.hpp"
11#include "../components/text_log_level.hpp"
12#include "../indicator_component.hpp"
13#include "../result.hpp"
88 std::optional<rerun::components::TextLogLevel>
level;
91 std::optional<rerun::components::Color>
color;
94 static constexpr const char IndicatorComponentName[] =
"rerun.components.TextLogIndicator";
109 level = std::move(_level);
111 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
116 color = std::move(_color);
118 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
126 template <
typename T>
131 struct AsComponents<archetypes::TextLog> {
133 static Result<std::vector<ComponentBatch>> serialize(
const archetypes::TextLog& archetype);
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:77
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: A log entry in a text log, comprised of a text body and its log level.
Definition text_log.hpp:81
std::optional< rerun::components::TextLogLevel > level
The verbosity level of the message.
Definition text_log.hpp:88
TextLog with_color(rerun::components::Color _color) &&
Optional color to use for the log line in the Rerun Viewer.
Definition text_log.hpp:115
std::optional< rerun::components::Color > color
Optional color to use for the log line in the Rerun Viewer.
Definition text_log.hpp:91
rerun::components::Text text
The body of the message.
Definition text_log.hpp:83
TextLog with_level(rerun::components::TextLogLevel _level) &&
The verbosity level of the message.
Definition text_log.hpp:108
Component: An RGBA color with unmultiplied/separate alpha, in sRGB gamma space with linear alpha.
Definition color.hpp:18
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32
Component: The severity level of a text log message.
Definition text_log_level.hpp:26
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:17