6#include "../../blueprint/components/background_kind.hpp"
7#include "../../collection.hpp"
8#include "../../compiler_utils.hpp"
9#include "../../component_batch.hpp"
10#include "../../components/color.hpp"
11#include "../../indicator_component.hpp"
12#include "../../result.hpp"
19namespace rerun::blueprint::archetypes {
23 rerun::blueprint::components::BackgroundKind
kind;
26 std::optional<rerun::components::Color>
color;
29 static constexpr const char IndicatorComponentName[] =
30 "rerun.blueprint.components.BackgroundIndicator";
39 explicit Background(rerun::blueprint::components::BackgroundKind _kind)
40 :
kind(std::move(_kind)) {}
44 color = std::move(_color);
46 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
59 struct AsComponents<blueprint::archetypes::Background> {
A class for representing either a usable value, or an error.
Definition result.hpp:14
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Archetype: Configuration for the background of a view.
Definition background.hpp:21
rerun::blueprint::components::BackgroundKind kind
The type of the background.
Definition background.hpp:23
Background with_color(rerun::components::Color _color) &&
Color used for the solid background type.
Definition background.hpp:43
std::optional< rerun::components::Color > color
Color used for the solid background type.
Definition background.hpp:26
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