WPILibC++ 2023.4.3
ShuffleboardRoot.h
Go to the documentation of this file.
1// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
4
5#pragma once
6
7#include <string_view>
8
9namespace frc {
10
11class ShuffleboardTab;
12
13/**
14 * The root of the data placed in Shuffleboard. It contains the tabs, but no
15 * data is placed directly in the root.
16 *
17 * This class is package-private to minimize API surface area.
18 */
20 public:
21 /**
22 * Gets the tab with the given title, creating it if it does not already
23 * exist.
24 *
25 * @param title the title of the tab
26 * @return the tab with the given title
27 */
29
30 /**
31 * Updates all tabs.
32 */
33 virtual void Update() = 0;
34
35 /**
36 * Enables all widgets in Shuffleboard that offer user control over actuators.
37 */
38 virtual void EnableActuatorWidgets() = 0;
39
40 /**
41 * Disables all widgets in Shuffleboard that offer user control over
42 * actuators.
43 */
44 virtual void DisableActuatorWidgets() = 0;
45
46 /**
47 * Selects the tab in the dashboard with the given index in the range
48 * [0..n-1], where <i>n</i> is the number of tabs in the dashboard at the time
49 * this method is called.
50 *
51 * @param index the index of the tab to select
52 */
53 virtual void SelectTab(int index) = 0;
54
55 /**
56 * Selects the tab in the dashboard with the given title.
57 *
58 * @param title the title of the tab to select
59 */
60 virtual void SelectTab(std::string_view title) = 0;
61};
62
63} // namespace frc
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:19
virtual ShuffleboardTab & GetTab(std::string_view title)=0
Gets the tab with the given title, creating it if it does not already exist.
virtual void DisableActuatorWidgets()=0
Disables all widgets in Shuffleboard that offer user control over actuators.
virtual void SelectTab(std::string_view title)=0
Selects the tab in the dashboard with the given title.
virtual void Update()=0
Updates all tabs.
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...
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:26
basic_string_view< char > string_view
Definition: core.h:520
Definition: AprilTagFieldLayout.h:22