6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/color.hpp"
9#include "../components/text.hpp"
10#include "../components/text_log_level.hpp"
11#include "../data_cell.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 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
116 color = std::move(_color);
118 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
131 template <
typename T>
136 struct AsComponents<archetypes::TextLog> {
138 static Result<std::vector<DataCell>> serialize(
const archetypes::TextLog& archetype);
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: A log entry in a text log, comprised of a text body and its log level.
Definition text_log.hpp:81
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition text_log.hpp:122
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:28
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: The severity level of a text log message.
Definition text_log_level.hpp:30
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:22