// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
// Based on "crates/store/re_types/definitions/rerun/components/marker_shape.fbs".

#pragma once

#include "../result.hpp"

#include <cstdint>
#include <memory>

namespace arrow {
    /// \private
    template <typename T>
    class NumericBuilder;

    class Array;
    class DataType;
    class UInt8Type;
    using UInt8Builder = NumericBuilder<UInt8Type>;
} // namespace arrow

namespace rerun::components {
    /// **Component**: The visual appearance of a point in e.g. a 2D plot.
    enum class MarkerShape : uint8_t {

        /// `⏺`
        Circle = 1,

        /// `◆`
        Diamond = 2,

        /// `◼\u{fe0f}`
        Square = 3,

        /// `x`
        Cross = 4,

        /// `+`
        Plus = 5,

        /// `▲`
        Up = 6,

        /// `▼`
        Down = 7,

        /// `◀`
        Left = 8,

        /// `▶`
        Right = 9,

        /// `*`
        Asterisk = 10,
    };
} // namespace rerun::components

namespace rerun {
    template <typename T>
    struct Loggable;

    /// \private
    template <>
    struct Loggable<components::MarkerShape> {
        static constexpr std::string_view ComponentType = "rerun.components.MarkerShape";

        /// Returns the arrow data type this type corresponds to.
        static const std::shared_ptr<arrow::DataType>& arrow_datatype();

        /// Serializes an array of `rerun::components::MarkerShape` into an arrow array.
        static Result<std::shared_ptr<arrow::Array>> to_arrow(
            const components::MarkerShape* instances, size_t num_instances
        );

        /// Fills an arrow array builder with an array of this type.
        static rerun::Error fill_arrow_array_builder(
            arrow::UInt8Builder* builder, const components::MarkerShape* elements,
            size_t num_elements
        );
    };
} // namespace rerun
