WPILibC++ 2023.4.3-108-ge5452e3
|
Abstract superclass for widgets. More...
#include <frc/shuffleboard/ShuffleboardWidget.h>
Public Member Functions | |
ShuffleboardWidget (ShuffleboardContainer &parent, std::string_view title) | |
Derived & | WithWidget (BuiltInWidgets widgetType) |
Sets the type of widget used to display the data. More... | |
Derived & | WithWidget (const WidgetType &widgetType) |
Sets the type of widget used to display the data. More... | |
Derived & | WithWidget (std::string_view widgetType) |
Sets the type of widget used to display the data. More... | |
Public Member Functions inherited from frc::ShuffleboardComponent< Derived > | |
ShuffleboardComponent (ShuffleboardContainer &parent, std::string_view title, std::string_view type="") | |
Derived & | WithProperties (const wpi::StringMap< nt::Value > &properties) |
Sets custom properties for this component. More... | |
Derived & | WithPosition (int columnIndex, int rowIndex) |
Sets the position of this component in the tab. More... | |
Derived & | WithSize (int width, int height) |
Sets the size of this component in the tab. More... | |
Public Member Functions inherited from frc::ShuffleboardComponentBase | |
ShuffleboardComponentBase (ShuffleboardContainer &parent, std::string_view title, std::string_view type="") | |
void | SetType (std::string_view type) |
void | BuildMetadata (std::shared_ptr< nt::NetworkTable > metaTable) |
ShuffleboardContainer & | GetParent () |
const std::string & | GetType () const |
Public Member Functions inherited from frc::ShuffleboardValue | |
ShuffleboardValue (std::string_view title) | |
virtual | ~ShuffleboardValue ()=default |
ShuffleboardValue (const ShuffleboardValue &)=delete | |
ShuffleboardValue & | operator= (const ShuffleboardValue &)=delete |
const std::string & | GetTitle () const |
Gets the title of this Shuffleboard value. More... | |
virtual void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable)=0 |
Builds the entries for this value. More... | |
virtual void | EnableIfActuator () |
Enables user control of this widget in the Shuffleboard application. More... | |
virtual void | DisableIfActuator () |
Disables user control of this widget in the Shuffleboard application. More... | |
Additional Inherited Members | |
Protected Attributes inherited from frc::ShuffleboardComponentBase | |
wpi::StringMap< nt::Value > | m_properties |
bool | m_metadataDirty = true |
int | m_column = -1 |
int | m_row = -1 |
int | m_width = -1 |
int | m_height = -1 |
Abstract superclass for widgets.
This class is package-private to minimize API surface area.
Derived | the self type |
|
inline |
|
inline |
Sets the type of widget used to display the data.
If not set, the default widget type will be used.
widgetType | the type of the widget used to display the data |
|
inline |
Sets the type of widget used to display the data.
If not set, the default widget type will be used.
widgetType | the type of the widget used to display the data |
|
inline |
Sets the type of widget used to display the data.
If not set, the default widget type will be used. This method should only be used to use a widget that does not come built into Shuffleboard (i.e. one that comes with a custom or third-party plugin). To use a widget that is built into Shuffleboard, use WithWidget(WidgetType) and BuiltInWidgets.
widgetType | the type of the widget used to display the data |