Rerun C++ SDK
Loading...
Searching...
No Matches
panel_blueprint.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/store/re_types/definitions/rerun/blueprint/archetypes/panel_blueprint.fbs".
3
4#pragma once
5
6#include "../../blueprint/components/panel_state.hpp"
7#include "../../collection.hpp"
8#include "../../compiler_utils.hpp"
9#include "../../component_batch.hpp"
10#include "../../indicator_component.hpp"
11#include "../../result.hpp"
12
13#include <cstdint>
14#include <optional>
15#include <utility>
16#include <vector>
17
18namespace rerun::blueprint::archetypes {
19 /// **Archetype**: Shared state for the 3 collapsible panels.
21 /// Current state of the panels.
22 std::optional<rerun::blueprint::components::PanelState> state;
23
24 public:
25 static constexpr const char IndicatorComponentName[] =
26 "rerun.blueprint.components.PanelBlueprintIndicator";
27
28 /// Indicator component, used to identify the archetype when converting to a list of components.
30
31 public:
32 PanelBlueprint() = default;
33 PanelBlueprint(PanelBlueprint&& other) = default;
34
35 /// Current state of the panels.
36 PanelBlueprint with_state(rerun::blueprint::components::PanelState _state) && {
37 state = std::move(_state);
38 // See: https://github.com/rerun-io/rerun/issues/4027
39 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
40 }
41 };
42
43} // namespace rerun::blueprint::archetypes
44
45namespace rerun {
46 /// \private
47 template <typename T>
48 struct AsComponents;
49
50 /// \private
51 template <>
52 struct AsComponents<blueprint::archetypes::PanelBlueprint> {
53 /// Serialize all set component batches.
54 static Result<std::vector<ComponentBatch>> serialize(
56 );
57 };
58} // namespace rerun
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: Shared state for the 3 collapsible panels.
Definition panel_blueprint.hpp:20
PanelBlueprint with_state(rerun::blueprint::components::PanelState _state) &&
Current state of the panels.
Definition panel_blueprint.hpp:36
std::optional< rerun::blueprint::components::PanelState > state
Current state of the panels.
Definition panel_blueprint.hpp:22
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:32