WPILibC++  2019.4.1-1-g12ab035
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ShuffleboardRoot.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include <wpi/StringRef.h>
11 
12 namespace frc {
13 
14 class ShuffleboardTab;
15 
23  public:
31  virtual ShuffleboardTab& GetTab(wpi::StringRef title) = 0;
32 
36  virtual void Update() = 0;
37 
41  virtual void EnableActuatorWidgets() = 0;
42 
47  virtual void DisableActuatorWidgets() = 0;
48 
56  virtual void SelectTab(int index) = 0;
57 
63  virtual void SelectTab(wpi::StringRef title) = 0;
64 };
65 
66 } // namespace frc
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
virtual void DisableActuatorWidgets()=0
Disables all widgets in Shuffleboard that offer user control over actuators.
virtual ShuffleboardTab & GetTab(wpi::StringRef title)=0
Gets the tab with the given title, creating it if it does not already exist.
virtual void EnableActuatorWidgets()=0
Enables all widgets in Shuffleboard that offer user control over actuators.
virtual void SelectTab(int index)=0
Selects the tab in the dashboard with the given index in the range [0..n-1], where n is the number of...
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:22
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:29
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
virtual void Update()=0
Updates all tabs.