WPILibC++ 2024.3.2
frc::WidgetType Class Reference

Represents the type of a widget in Shuffleboard. More...

#include <frc/shuffleboard/WidgetType.h>

Public Member Functions

constexpr WidgetType (const char *widgetName)
 
 ~WidgetType ()=default
 
std::string_view GetWidgetName () const
 Gets the string type of the widget as defined by that widget in Shuffleboard. More...
 

Detailed Description

Represents the type of a widget in Shuffleboard.

Using this is preferred over specifying raw strings, to avoid typos and having to know or look up the exact string name for a desired widget.

See also
BuiltInWidgets the built-in widget types

Constructor & Destructor Documentation

◆ WidgetType()

constexpr frc::WidgetType::WidgetType ( const char *  widgetName)
inlineexplicitconstexpr

◆ ~WidgetType()

frc::WidgetType::~WidgetType ( )
default

Member Function Documentation

◆ GetWidgetName()

std::string_view frc::WidgetType::GetWidgetName ( ) const

Gets the string type of the widget as defined by that widget in Shuffleboard.


The documentation for this class was generated from the following file: