6#include "../../blueprint/components/column_name.hpp"
7#include "../../collection.hpp"
8#include "../../component_batch.hpp"
9#include "../../component_column.hpp"
10#include "../../result.hpp"
17namespace rerun::blueprint::archetypes {
28 std::optional<ComponentBatch>
title;
33 std::optional<ComponentBatch>
link;
46 static constexpr const char ArchetypeName[] =
"rerun.blueprint.archetypes.CardLayout";
90 return std::move(*
this);
98 return std::move(*
this);
113 return std::move(*
this);
137 template <
typename T>
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:26
Arrow-encoded data of a single batch of components together with a component descriptor.
Definition component_batch.hpp:28
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Archetype: Blueprint for displaying table records as cards.
Definition card_layout.hpp:24
CardLayout with_link(const rerun::blueprint::components::ColumnName &_link) &&
The source column containing the target opened when a card is activated.
Definition card_layout.hpp:96
std::optional< ComponentBatch > field_order
Source columns visible by default in each card, in display order.
Definition card_layout.hpp:42
static CardLayout clear_fields()
Clear all the fields of a CardLayout.
static constexpr auto Descriptor_field_order
ComponentDescriptor for the field_order field.
Definition card_layout.hpp:59
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
std::optional< ComponentBatch > link
The source column containing the target opened when a card is activated.
Definition card_layout.hpp:33
static constexpr auto Descriptor_title
ComponentDescriptor for the title field.
Definition card_layout.hpp:49
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition card_layout.hpp:46
static constexpr auto Descriptor_link
ComponentDescriptor for the link field.
Definition card_layout.hpp:54
std::optional< ComponentBatch > title
The source column used for card titles.
Definition card_layout.hpp:28
CardLayout with_title(const rerun::blueprint::components::ColumnName &_title) &&
The source column used for card titles.
Definition card_layout.hpp:88
static CardLayout update_fields()
Update only some specific fields of a CardLayout.
Definition card_layout.hpp:78
CardLayout with_field_order(const Collection< rerun::blueprint::components::ColumnName > &_field_order) &&
Source columns visible by default in each card, in display order.
Definition card_layout.hpp:108
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
Component: The name of a column in a table.
Definition column_name.hpp:22