17class ShuffleboardContainer;
24template <
typename Derived>
35 std::string_view type =
"")
50 return *
static_cast<Derived*
>(
this);
70 return *
static_cast<Derived*
>(
this);
85 return *
static_cast<Derived*
>(
this);
A shim class to allow storing ShuffleboardComponents in arrays.
Definition ShuffleboardComponentBase.h:24
int m_width
Definition ShuffleboardComponentBase.h:42
wpi::StringMap< nt::Value > m_properties
Definition ShuffleboardComponentBase.h:38
bool m_metadataDirty
Definition ShuffleboardComponentBase.h:39
int m_height
Definition ShuffleboardComponentBase.h:43
int m_row
Definition ShuffleboardComponentBase.h:41
int m_column
Definition ShuffleboardComponentBase.h:40
A generic component in Shuffleboard.
Definition ShuffleboardComponent.h:25
Derived & WithSize(int width, int height)
Sets the size of this component in the tab.
Definition ShuffleboardComponent.h:81
Derived & WithProperties(const wpi::StringMap< nt::Value > &properties)
Sets custom properties for this component.
Definition ShuffleboardComponent.h:47
ShuffleboardComponent(ShuffleboardContainer &parent, std::string_view title, std::string_view type="")
Constructs a ShuffleboardComponent.
Definition ShuffleboardComponent.h:34
Derived & WithPosition(int columnIndex, int rowIndex)
Sets the position of this component in the tab.
Definition ShuffleboardComponent.h:66
Common interface for objects that can contain shuffleboard components.
Definition ShuffleboardContainer.h:42
Definition ShuffleboardValue.h:15
StringMap is a sorted associative container that contains key-value pairs with unique string keys.
Definition StringMap.h:26