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 std::optional<rerun::blueprint::components::PanelState> state;
22
23 public:
24 static constexpr const char IndicatorComponentName[] =
25 "rerun.blueprint.components.PanelBlueprintIndicator";
26
27 /// Indicator component, used to identify the archetype when converting to a list of components.
29
30 public:
31 PanelBlueprint() = default;
32 PanelBlueprint(PanelBlueprint&& other) = default;
33
34 PanelBlueprint with_state(rerun::blueprint::components::PanelState _state) && {
35 state = std::move(_state);
36 // See: https://github.com/rerun-io/rerun/issues/4027
37 RR_WITH_MAYBE_UNINITIALIZED_DISABLED(return std::move(*this);)
38 }
39 };
40
41} // namespace rerun::blueprint::archetypes
42
43namespace rerun {
44 /// \private
45 template <typename T>
46 struct AsComponents;
47
48 /// \private
49 template <>
50 struct AsComponents<blueprint::archetypes::PanelBlueprint> {
51 /// Serialize all set component batches.
52 static Result<std::vector<ComponentBatch>> serialize(
54 );
55 };
56} // 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:22
Archetype: Shared state for the 3 collapsible panels.
Definition panel_blueprint.hpp:20
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:30