// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. #pragma once #include #include #include #include "frc/shuffleboard/ShuffleboardComponent.h" namespace frc { template ShuffleboardComponent::ShuffleboardComponent( ShuffleboardContainer& parent, std::string_view title, std::string_view type) : ShuffleboardValue(title), ShuffleboardComponentBase(parent, title, type) {} template Derived& ShuffleboardComponent::WithProperties( const wpi::StringMap>& properties) { m_properties = properties; m_metadataDirty = true; return *static_cast(this); } template Derived& ShuffleboardComponent::WithPosition(int columnIndex, int rowIndex) { m_column = columnIndex; m_row = rowIndex; m_metadataDirty = true; return *static_cast(this); } template Derived& ShuffleboardComponent::WithSize(int width, int height) { m_width = width; m_height = height; m_metadataDirty = true; return *static_cast(this); } } // namespace frc