6#include "../../blueprint/components/active_tab.hpp"
7#include "../../blueprint/components/column_share.hpp"
8#include "../../blueprint/components/container_kind.hpp"
9#include "../../blueprint/components/grid_columns.hpp"
10#include "../../blueprint/components/included_content.hpp"
11#include "../../blueprint/components/row_share.hpp"
12#include "../../blueprint/components/visible.hpp"
13#include "../../collection.hpp"
14#include "../../compiler_utils.hpp"
15#include "../../component_batch.hpp"
16#include "../../components/name.hpp"
17#include "../../indicator_component.hpp"
18#include "../../result.hpp"
25namespace rerun::blueprint::archetypes {
35 std::optional<Collection<rerun::blueprint::components::IncludedContent>>
contents;
42 std::optional<Collection<rerun::blueprint::components::ColumnShare>>
col_shares;
49 std::optional<Collection<rerun::blueprint::components::RowShare>>
row_shares;
54 std::optional<rerun::blueprint::components::ActiveTab>
active_tab;
59 std::optional<rerun::blueprint::components::Visible>
visible;
66 std::optional<rerun::blueprint::components::GridColumns>
grid_columns;
69 static constexpr const char IndicatorComponentName[] =
70 "rerun.blueprint.components.ContainerBlueprintIndicator";
79 explicit ContainerBlueprint(rerun::blueprint::components::ContainerKind _container_kind)
86 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
95 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
108 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
121 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
130 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
139 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
151 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
159 template <
typename T>
164 struct AsComponents<blueprint::archetypes::ContainerBlueprint> {
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
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:22
Archetype: The description of a container.
Definition container_blueprint.hpp:27
std::optional< rerun::blueprint::components::Visible > visible
Whether this container is visible.
Definition container_blueprint.hpp:59
ContainerBlueprint with_display_name(rerun::components::Name _display_name) &&
The name of the container.
Definition container_blueprint.hpp:83
std::optional< Collection< rerun::blueprint::components::ColumnShare > > col_shares
The layout shares of each column in the container.
Definition container_blueprint.hpp:42
std::optional< rerun::blueprint::components::GridColumns > grid_columns
How many columns this grid should have.
Definition container_blueprint.hpp:66
ContainerBlueprint with_active_tab(rerun::blueprint::components::ActiveTab _active_tab) &&
Which tab is active.
Definition container_blueprint.hpp:127
std::optional< Collection< rerun::blueprint::components::RowShare > > row_shares
The layout shares of each row of the container.
Definition container_blueprint.hpp:49
ContainerBlueprint with_contents(Collection< rerun::blueprint::components::IncludedContent > _contents) &&
ContainerIds or SpaceViewIds that are children of this container.
Definition container_blueprint.hpp:90
ContainerBlueprint with_grid_columns(rerun::blueprint::components::GridColumns _grid_columns) &&
How many columns this grid should have.
Definition container_blueprint.hpp:147
std::optional< Collection< rerun::blueprint::components::IncludedContent > > contents
ContainerIds or SpaceViewIds that are children of this container.
Definition container_blueprint.hpp:35
ContainerBlueprint with_visible(rerun::blueprint::components::Visible _visible) &&
Whether this container is visible.
Definition container_blueprint.hpp:136
rerun::blueprint::components::ContainerKind container_kind
The class of the view.
Definition container_blueprint.hpp:29
ContainerBlueprint with_row_shares(Collection< rerun::blueprint::components::RowShare > _row_shares) &&
The layout shares of each row of the container.
Definition container_blueprint.hpp:116
std::optional< rerun::components::Name > display_name
The name of the container.
Definition container_blueprint.hpp:32
ContainerBlueprint with_col_shares(Collection< rerun::blueprint::components::ColumnShare > _col_shares) &&
The layout shares of each column in the container.
Definition container_blueprint.hpp:103
std::optional< rerun::blueprint::components::ActiveTab > active_tab
Which tab is active.
Definition container_blueprint.hpp:54
Component: The active tab in a tabbed container.
Definition active_tab.hpp:16
Component: How many columns a grid container should have.
Definition grid_columns.hpp:14
Component: Whether the container, view, entity or instance is currently visible.
Definition visible.hpp:14
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30
Component: A display name, typically for an entity or a item like a plot series.
Definition name.hpp:16