|
WPILibC++
2020.3.2
|
A Shuffleboard widget that handles a Sendable object such as a speed controller or sensor. More...
#include <ComplexWidget.h>
Public Member Functions | |
| ComplexWidget (ShuffleboardContainer &parent, const wpi::Twine &title, Sendable &sendable) | |
| void | EnableIfActuator () override |
| Enables user control of this widget in the Shuffleboard application. More... | |
| void | DisableIfActuator () override |
| Disables user control of this widget in the Shuffleboard application. More... | |
| void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override |
| Builds the entries for this value. More... | |
Public Member Functions inherited from frc::ShuffleboardWidget< ComplexWidget > | |
| ShuffleboardWidget (ShuffleboardContainer &parent, const wpi::Twine &title) | |
| ComplexWidget & | WithWidget (BuiltInWidgets widgetType) |
| Sets the type of widget used to display the data. More... | |
| ComplexWidget & | WithWidget (const WidgetType &widgetType) |
| Sets the type of widget used to display the data. More... | |
| ComplexWidget & | WithWidget (const wpi::Twine &widgetType) |
| Sets the type of widget used to display the data. More... | |
Public Member Functions inherited from frc::ShuffleboardComponent< ComplexWidget > | |
| ShuffleboardComponent (ShuffleboardContainer &parent, const wpi::Twine &title, const wpi::Twine &type="") | |
| ComplexWidget & | WithProperties (const wpi::StringMap< std::shared_ptr< nt::Value >> &properties) |
| Sets custom properties for this component. More... | |
| ComplexWidget & | WithPosition (int columnIndex, int rowIndex) |
| Sets the position of this component in the tab. More... | |
| ComplexWidget & | 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, 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 |
Public Member Functions inherited from frc::ShuffleboardValue | |
| ShuffleboardValue (const wpi::Twine &title) | |
| wpi::StringRef | GetTitle () const |
| Gets the title of this Shuffleboard value. | |
Additional Inherited Members | |
Protected Attributes inherited from frc::ShuffleboardComponentBase | |
| 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 Sendable object such as a speed controller or sensor.
|
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.
|
overridevirtual |
Disables user control of this widget in the Shuffleboard application.
This method is package-private to prevent users from enabling control themselves. Has no effect if the sendable is not marked as an actuator with SendableBuilder#setActuator.
Reimplemented from frc::ShuffleboardValue.
|
overridevirtual |
Enables user control of this widget in the Shuffleboard application.
This method is package-private to prevent users from enabling control themselves. Has no effect if the sendable is not marked as an actuator with SendableBuilder#setActuator.
Reimplemented from frc::ShuffleboardValue.