WPILibC++
2019.1.1-beta-1-31-g81d10bc
|
Abstract superclass for widgets. More...
#include <ShuffleboardWidget.h>
Public Member Functions | |
ShuffleboardWidget (ShuffleboardContainer &parent, const wpi::Twine &title) | |
Derived & | WithWidget (const wpi::Twine &widgetType) |
Sets the type of widget used to display the data. More... | |
![]() | |
ShuffleboardComponent (ShuffleboardContainer &parent, const wpi::Twine &title, const wpi::Twine &type="") | |
ShuffleboardWidget< Derived > & | WithProperties (const wpi::StringMap< std::shared_ptr< nt::Value >> &properties) |
Sets custom properties for this component. More... | |
ShuffleboardWidget< Derived > & | WithPosition (int columnIndex, int rowIndex) |
Sets the position of this component in the tab. More... | |
ShuffleboardWidget< Derived > & | WithSize (int width, int height) |
Sets the size of this component in the tab. More... | |
![]() | |
ShuffleboardComponentBase (ShuffleboardContainer &parent, const wpi::Twine &title, const wpi::Twine &type="") | |
void | SetType (const wpi::Twine &type) |
void | BuildMetadata (std::shared_ptr< nt::NetworkTable > metaTable) |
ShuffleboardContainer & | GetParent () |
const std::string & | GetType () const |
![]() | |
ShuffleboardValue (const wpi::Twine &title) | |
wpi::StringRef | GetTitle () const |
Gets the title of this Shuffleboard value. | |
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 | |
![]() | |
wpi::StringMap < std::shared_ptr< 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 |
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 |