WPILibC++ 2023.4.3-108-ge5452e3
|
Common interface for objects that can contain shuffleboard components. More...
#include <frc/shuffleboard/ShuffleboardContainer.h>
Public Member Functions | |
ShuffleboardContainer (std::string_view title) | |
ShuffleboardContainer (ShuffleboardContainer &&rhs)=default | |
~ShuffleboardContainer () override=default | |
const std::vector< std::unique_ptr< ShuffleboardComponentBase > > & | GetComponents () const |
Gets the components that are direct children of this container. More... | |
ShuffleboardLayout & | GetLayout (std::string_view title, BuiltInLayouts type) |
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... | |
ShuffleboardLayout & | GetLayout (std::string_view title, const LayoutType &type) |
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... | |
ShuffleboardLayout & | GetLayout (std::string_view title, std::string_view type) |
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... | |
ShuffleboardLayout & | GetLayout (std::string_view title) |
Gets the already-defined layout in this container with the given title. More... | |
ComplexWidget & | Add (std::string_view title, wpi::Sendable &sendable) |
Adds a widget to this container to display the given sendable. More... | |
ComplexWidget & | Add (std::string_view title, const cs::VideoSource &video) |
Adds a widget to this container to display the given video stream. More... | |
ComplexWidget & | AddCamera (std::string_view title, std::string_view cameraName, std::span< const std::string > cameraUrls) |
Adds a widget to this container to display a video stream. More... | |
ComplexWidget & | Add (wpi::Sendable &sendable) |
Adds a widget to this container to display the given sendable. More... | |
ComplexWidget & | Add (const cs::VideoSource &video) |
Adds a widget to this container to display the given video stream. More... | |
SimpleWidget & | Add (std::string_view title, const nt::Value &defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, bool defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, double defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, float defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, int defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::string_view defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, const char *defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::span< const bool > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::span< const double > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::span< const float > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::span< const int64_t > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SimpleWidget & | Add (std::string_view title, std::span< const std::string > defaultValue) |
Adds a widget to this container to display the given data. More... | |
SuppliedValueWidget< std::string > & | AddString (std::string_view title, std::function< std::string()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< double > & | AddNumber (std::string_view title, std::function< double()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< double > & | AddDouble (std::string_view title, std::function< double()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< float > & | AddFloat (std::string_view title, std::function< float()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< int64_t > & | AddInteger (std::string_view title, std::function< int64_t()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< bool > & | AddBoolean (std::string_view title, std::function< bool()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< std::string > > & | AddStringArray (std::string_view title, std::function< std::vector< std::string >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< double > > & | AddNumberArray (std::string_view title, std::function< std::vector< double >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< double > > & | AddDoubleArray (std::string_view title, std::function< std::vector< double >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< float > > & | AddFloatArray (std::string_view title, std::function< std::vector< float >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< int64_t > > & | AddIntegerArray (std::string_view title, std::function< std::vector< int64_t >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< int > > & | AddBooleanArray (std::string_view title, std::function< std::vector< int >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< uint8_t > > & | AddRaw (std::string_view title, std::function< std::vector< uint8_t >()> supplier) |
Adds a widget to this container. More... | |
SuppliedValueWidget< std::vector< uint8_t > > & | AddRaw (std::string_view title, std::string_view typeString, std::function< std::vector< uint8_t >()> supplier) |
Adds a widget to this container. More... | |
SimpleWidget & | AddPersistent (std::string_view title, const nt::Value &defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, bool defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, double defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, float defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, int defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::string_view defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::span< const bool > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::span< const double > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::span< const float > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::span< const int64_t > defaultValue) |
Adds a widget to this container to display a simple piece of data. More... | |
SimpleWidget & | AddPersistent (std::string_view title, std::span< const 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... | |
Public Member Functions inherited from frc::ShuffleboardValue | |
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. More... | |
virtual void | BuildInto (std::shared_ptr< nt::NetworkTable > parentTable, std::shared_ptr< nt::NetworkTable > metaTable)=0 |
Builds the entries for this value. More... | |
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... | |
Protected Attributes | |
bool | m_isLayout = false |
Friends | |
class | SimpleWidget |
Common interface for objects that can contain shuffleboard components.
|
explicit |
|
default |
|
overridedefault |
|
inline |
Adds a widget to this container to display the given video stream.
video | the video to display |
IllegalArgumentException | if a widget already exists in this container with the same title as the video source |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
bool | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
const char * | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
|
inline |
Adds a widget to this container to display the given video stream.
title | the title of the widget |
video | the video stream to display |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
const nt::Value & | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
double | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
float | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
int | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::span< const bool > | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::span< const double > | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::span< const float > | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::span< const int64_t > | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::span< const std::string > | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
SimpleWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
std::string_view | defaultValue | ||
) |
Adds a widget to this container to display the given data.
title | the title of the widget |
defaultValue | the default value of the widget |
IllegalArgumentException | if a widget already exists in this container with the given title |
ComplexWidget & frc::ShuffleboardContainer::Add | ( | std::string_view | title, |
wpi::Sendable & | sendable | ||
) |
Adds a widget to this container to display the given sendable.
title | the title of the widget |
sendable | the sendable to display |
IllegalArgumentException | if a widget already exists in this container with the given title |
ComplexWidget & frc::ShuffleboardContainer::Add | ( | wpi::Sendable & | sendable | ) |
Adds a widget to this container to display the given sendable.
sendable | the sendable to display |
IllegalArgumentException | if a widget already exists in this container with the given title, or if the sendable's name has not been specified |
SuppliedValueWidget< bool > & frc::ShuffleboardContainer::AddBoolean | ( | std::string_view | title, |
std::function< bool()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< int > > & frc::ShuffleboardContainer::AddBooleanArray | ( | std::string_view | title, |
std::function< std::vector< int >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
|
inline |
Adds a widget to this container to display a video stream.
title | the title of the widget |
cameraName | the name of the streamed camera |
cameraUrls | the URLs with which the dashboard can access the camera stream |
SuppliedValueWidget< double > & frc::ShuffleboardContainer::AddDouble | ( | std::string_view | title, |
std::function< double()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< double > > & frc::ShuffleboardContainer::AddDoubleArray | ( | std::string_view | title, |
std::function< std::vector< double >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< float > & frc::ShuffleboardContainer::AddFloat | ( | std::string_view | title, |
std::function< float()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< float > > & frc::ShuffleboardContainer::AddFloatArray | ( | std::string_view | title, |
std::function< std::vector< float >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< int64_t > & frc::ShuffleboardContainer::AddInteger | ( | std::string_view | title, |
std::function< int64_t()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< int64_t > > & frc::ShuffleboardContainer::AddIntegerArray | ( | std::string_view | title, |
std::function< std::vector< int64_t >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< double > & frc::ShuffleboardContainer::AddNumber | ( | std::string_view | title, |
std::function< double()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< double > > & frc::ShuffleboardContainer::AddNumberArray | ( | std::string_view | title, |
std::function< std::vector< double >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
bool | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, bool), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
const nt::Value & | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::shared_ptr<nt::Value>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
double | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, double), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
float | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, float), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
int | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, int64_t), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::span< const bool > | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::span<const bool>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::span< const double > | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::span<const double>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::span< const float > | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::span<const float>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::span< const int64_t > | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::span<const int64_t>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::span< const std::string > | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::span<const std::string>), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SimpleWidget & frc::ShuffleboardContainer::AddPersistent | ( | std::string_view | title, |
std::string_view | defaultValue | ||
) |
Adds a widget to this container to display a simple piece of data.
Unlike Add(std::string_view, std::string_view), the value in the widget will be saved on the robot and will be used when the robot program next starts rather than defaultValue
.
title | the title of the widget |
defaultValue | the default value of the widget |
SuppliedValueWidget< std::vector< uint8_t > > & frc::ShuffleboardContainer::AddRaw | ( | std::string_view | title, |
std::function< std::vector< uint8_t >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< uint8_t > > & frc::ShuffleboardContainer::AddRaw | ( | std::string_view | title, |
std::string_view | typeString, | ||
std::function< std::vector< uint8_t >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
typeString | the NT type string |
supplier | the supplier for values |
SuppliedValueWidget< std::string > & frc::ShuffleboardContainer::AddString | ( | std::string_view | title, |
std::function< std::string()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
SuppliedValueWidget< std::vector< std::string > > & frc::ShuffleboardContainer::AddStringArray | ( | std::string_view | title, |
std::function< std::vector< std::string >()> | supplier | ||
) |
Adds a widget to this container.
The widget will display the data provided by the value supplier. Changes made on the dashboard will not propagate to the widget object, and will be overridden by values from the value supplier.
title | the title of the widget |
supplier | the supplier for values |
|
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.
const std::vector< std::unique_ptr< ShuffleboardComponentBase > > & frc::ShuffleboardContainer::GetComponents | ( | ) | const |
Gets the components that are direct children of this container.
ShuffleboardLayout & frc::ShuffleboardContainer::GetLayout | ( | std::string_view | title | ) |
Gets the already-defined layout in this container with the given title.
Shuffleboard::GetTab("Example Tab")->getLayout("My Layout",
&BuiltInLayouts.kList);
// Later...
Shuffleboard::GetTab("Example Tab")->GetLayout("My Layout");
title | the title of the layout to get |
if | no layout has yet been defined with the given title |
ShuffleboardLayout & frc::ShuffleboardContainer::GetLayout | ( | std::string_view | title, |
BuiltInLayouts | type | ||
) |
Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called.
title | the title of the layout |
type | the type of the layout, eg "List" or "Grid" |
ShuffleboardLayout & frc::ShuffleboardContainer::GetLayout | ( | std::string_view | title, |
const LayoutType & | type | ||
) |
Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called.
title | the title of the layout |
type | the type of the layout, eg "List" or "Grid" |
ShuffleboardLayout & frc::ShuffleboardContainer::GetLayout | ( | std::string_view | title, |
std::string_view | type | ||
) |
Gets the layout with the given type and title, creating it if it does not already exist at the time this method is called.
Note: this method should only be used to use a layout type that is not already built into Shuffleboard. To use a layout built into Shuffleboard, use GetLayout(std::string_view, const LayoutType&) and the layouts in BuiltInLayouts.
title | the title of the layout |
type | the type of the layout, eg "List Layout" or "Grid Layout" |
|
friend |
|
protected |