WPILibC++
2019.1.1-beta-4-29-g6105873
|
A Shuffleboard widget that handles a single data point such as a number or string. More...
#include <SimpleWidget.h>
Public Member Functions | |
SimpleWidget (ShuffleboardContainer &parent, const wpi::Twine &title) | |
nt::NetworkTableEntry | GetEntry () |
Gets the NetworkTable entry that contains the data for this widget. | |
void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override |
Builds the entries for this value. More... | |
![]() | |
ShuffleboardWidget (ShuffleboardContainer &parent, const wpi::Twine &title) | |
SimpleWidget & | withWidget (const WidgetType &widgetType) |
Sets the type of widget used to display the data. More... | |
SimpleWidget & | 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 < SimpleWidget > & | WithProperties (const wpi::StringMap< std::shared_ptr< nt::Value >> &properties) |
Sets custom properties for this component. More... | |
ShuffleboardWidget < SimpleWidget > & | WithPosition (int columnIndex, int rowIndex) |
Sets the position of this component in the tab. More... | |
ShuffleboardWidget < SimpleWidget > & | 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 | 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 |
A Shuffleboard widget that handles a single data point such as a number or string.
|
overridevirtual |
Builds the entries for this value.
parentTable | The table containing all the data for the parent. Values that require a complex entry or table structure should call parentTable.getSubtable(getTitle())
parentTable.getEntry(getTitle())
|
metaTable | The table containing all the metadata for this value and its sub-values |
Implements frc::ShuffleboardValue.