WPILibC++
2019.1.1-beta-2-8-g9207d78
|
A layout in a Shuffleboard tab. More...
#include <ShuffleboardLayout.h>
Public Member Functions | |
ShuffleboardLayout (ShuffleboardContainer &parent, const wpi::Twine &name, const wpi::Twine &type) | |
void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable) override |
Builds the entries for this value. More... | |
![]() | |
ShuffleboardComponent (ShuffleboardContainer &parent, const wpi::Twine &title, const wpi::Twine &type="") | |
ShuffleboardLayout & | WithProperties (const wpi::StringMap< std::shared_ptr< nt::Value >> &properties) |
Sets custom properties for this component. More... | |
ShuffleboardLayout & | WithPosition (int columnIndex, int rowIndex) |
Sets the position of this component in the tab. More... | |
ShuffleboardLayout & | 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. | |
![]() | |
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, const char *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... | |
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 |
![]() | |
bool | m_isLayout = false |
A layout in a Shuffleboard tab.
Layouts can contain widgets and other layouts.
|
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.