WPILibC++
2018.4.1-20181002134759-1212-g7b471d8
|
Represents a tab in the Shuffleboard dashboard. More...
#include <ShuffleboardTab.h>
Public Member Functions | |
ShuffleboardTab (ShuffleboardRoot &root, wpi::StringRef title) | |
ShuffleboardRoot & | GetRoot () |
void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override |
Builds the entries for this value. More... | |
![]() | |
ShuffleboardContainer (const wpi::Twine &title) | |
ShuffleboardContainer (ShuffleboardContainer &&rhs)=default | |
const std::vector < std::unique_ptr < ShuffleboardComponentBase > > & | GetComponents () const |
Gets the components that are direct children of this container. | |
ShuffleboardLayout & | GetLayout (const wpi::Twine &type, const wpi::Twine &title) |
Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called. More... | |
ComplexWidget & | Add (const wpi::Twine &title, Sendable &sendable) |
Adds a widget to this container to display the given sendable. More... | |
ComplexWidget & | Add (Sendable &sendable) |
Adds a widget to this container to display the given sendable. More... | |
SimpleWidget & | Add (const wpi::Twine &title, std::shared_ptr< nt::Value > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, bool defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, double defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, int defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, const wpi::Twine &defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, wpi::ArrayRef< bool > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, wpi::ArrayRef< double > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (const wpi::Twine &title, wpi::ArrayRef< std::string > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, std::shared_ptr< nt::Value > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, bool defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, double defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, int defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, const wpi::Twine &defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, wpi::ArrayRef< bool > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, wpi::ArrayRef< double > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (const wpi::Twine &title, wpi::ArrayRef< std::string > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
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... | |
![]() | |
ShuffleboardValue (const wpi::Twine &title) | |
wpi::StringRef | GetTitle () const |
Gets the title of this Shuffleboard value. | |
Additional Inherited Members | |
![]() | |
bool | m_isLayout = false |
Represents a tab in the Shuffleboard dashboard.
Widgets can be added to the tab with add(Sendable), add(String, Object), and add(String, Sendable). Widgets can also be added to layouts with getLayout(String, String); layouts can be nested arbitrarily deep (note that too many levels may make deeper components unusable).
|
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.