6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/media_type.hpp"
9#include "../components/text.hpp"
10#include "../data_cell.hpp"
11#include "../indicator_component.hpp"
12#include "../result.hpp"
91 static constexpr const char IndicatorComponentName[] =
92 "rerun.components.TextDocumentIndicator";
113 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
126 template <
typename T>
131 struct AsComponents<archetypes::TextDocument> {
133 static Result<std::vector<DataCell>> serialize(
const archetypes::TextDocument& 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 text element intended to be displayed in its own text-box.
Definition text_document.hpp:77
rerun::components::Text text
Contents of the text document.
Definition text_document.hpp:79
TextDocument with_media_type(rerun::components::MediaType _media_type) &&
The Media Type of the text.
Definition text_document.hpp:110
std::optional< rerun::components::MediaType > media_type
The Media Type of the text.
Definition text_document.hpp:88
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition text_document.hpp:117
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: A string of text, e.g. for labels and text documents.
Definition text.hpp:22