Rerun C++ SDK
Loading...
Searching...
No Matches
panel_view.hpp
1// DO NOT EDIT! This file was auto-generated by crates/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/re_types/definitions/rerun/blueprint/panel_view.fbs".
3
4#pragma once
5
6#include "../result.hpp"
7
8#include <cstdint>
9#include <memory>
10
11namespace arrow {
12 class Array;
13 class DataType;
14 class StructBuilder;
15} // namespace arrow
16
17namespace rerun::blueprint {
18 /// **Blueprint**: The state of the panels.
19 ///
20 /// Unstable. Used for the ongoing blueprint experimentations.
21 struct PanelView {
22 bool is_expanded;
23
24 public:
25 PanelView() = default;
26
27 PanelView(bool is_expanded_) : is_expanded(is_expanded_) {}
28
29 PanelView& operator=(bool is_expanded_) {
30 is_expanded = is_expanded_;
31 return *this;
32 }
33 };
34} // namespace rerun::blueprint
35
36namespace rerun {
37 template <typename T>
38 struct Loggable;
39
40 /// \private
41 template <>
42 struct Loggable<blueprint::PanelView> {
43 static constexpr const char Name[] = "rerun.blueprint.PanelView";
44
45 /// Returns the arrow data type this type corresponds to.
46 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
47
48 /// Fills an arrow array builder with an array of this type.
49 static rerun::Error fill_arrow_array_builder(
50 arrow::StructBuilder* builder, const blueprint::PanelView* elements, size_t num_elements
51 );
52
53 /// Serializes an array of `rerun::blueprint::PanelView` into an arrow array.
55 const blueprint::PanelView* instances, size_t num_instances
56 );
57 };
58} // namespace rerun
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
A class for representing either a usable value, or an error.
Definition result.hpp:14
All blueprint types. This is still experimental and subject to change!
Definition rerun.hpp:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
Blueprint: The state of the panels.
Definition panel_view.hpp:21