A Shuffleboard widget that handles a Sendable object such as a motor controller or sensor.
More...
#include <frc/shuffleboard/ComplexWidget.h>
|
| | ComplexWidget (ShuffleboardContainer &parent, std::string_view title, wpi::Sendable &sendable) |
| |
| | ~ComplexWidget () override |
| |
| void | EnableIfActuator () override |
| | Enables user control of this widget in the Shuffleboard application.
|
| |
| void | DisableIfActuator () override |
| | Disables user control of this widget in the Shuffleboard application.
|
| |
| void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override |
| | Builds the entries for this value.
|
| |
| | ShuffleboardWidget (ShuffleboardContainer &parent, std::string_view title) |
| |
| ComplexWidget & | WithWidget (BuiltInWidgets widgetType) |
| | Sets the type of widget used to display the data.
|
| |
| ComplexWidget & | WithWidget (const WidgetType &widgetType) |
| | Sets the type of widget used to display the data.
|
| |
| ComplexWidget & | WithWidget (std::string_view widgetType) |
| | Sets the type of widget used to display the data.
|
| |
| | ShuffleboardComponent (ShuffleboardContainer &parent, std::string_view title, std::string_view type="") |
| | Constructs a ShuffleboardComponent.
|
| |
| ComplexWidget & | WithProperties (const wpi::StringMap< nt::Value > &properties) |
| | Sets custom properties for this component.
|
| |
| ComplexWidget & | WithPosition (int columnIndex, int rowIndex) |
| | Sets the position of this component in the tab.
|
| |
| ComplexWidget & | WithSize (int width, int height) |
| | Sets the size of this component in the tab.
|
| |
| | 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 |
| |
| | 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.
|
| |
A Shuffleboard widget that handles a Sendable object such as a motor controller or sensor.
◆ ComplexWidget()
◆ ~ComplexWidget()
| frc::ComplexWidget::~ComplexWidget |
( |
| ) |
|
|
override |
◆ BuildInto()
Builds the entries for this value.
- Parameters
-
| parentTable | The table containing all the data for the parent. Values that require a complex entry or table structure should call parentTable.getSubtable(getTitle()) to get the table to put data into. Values that only use a single entry should call parentTable.getEntry(getTitle()) to get that entry. |
| metaTable | The table containing all the metadata for this value and its sub-values |
Implements frc::ShuffleboardValue.
◆ DisableIfActuator()
| void frc::ComplexWidget::DisableIfActuator |
( |
| ) |
|
|
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.
◆ EnableIfActuator()
| void frc::ComplexWidget::EnableIfActuator |
( |
| ) |
|
|
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.
The documentation for this class was generated from the following file: