WPILibC++  2020.3.2
ShuffleboardInstance.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 <memory>
11 
12 #include "frc/shuffleboard/ShuffleboardRoot.h"
13 #include "frc/shuffleboard/ShuffleboardTab.h"
14 
15 namespace frc {
16 namespace detail {
17 
18 class ShuffleboardInstance final : public ShuffleboardRoot {
19  public:
21  virtual ~ShuffleboardInstance();
22 
24 
25  void Update() override;
26 
27  void EnableActuatorWidgets() override;
28 
29  void DisableActuatorWidgets() override;
30 
31  void SelectTab(int index) override;
32 
33  void SelectTab(wpi::StringRef) override;
34 
35  private:
36  struct Impl;
37  std::unique_ptr<Impl> m_impl;
38 };
39 
40 } // namespace detail
41 } // namespace frc
nt::NetworkTableInstance
NetworkTables Instance.
Definition: NetworkTableInstance.h:53
frc::detail::ShuffleboardInstance::EnableActuatorWidgets
void EnableActuatorWidgets() override
Enables all widgets in Shuffleboard that offer user control over actuators.
frc::detail::ShuffleboardInstance::DisableActuatorWidgets
void DisableActuatorWidgets() override
Disables all widgets in Shuffleboard that offer user control over actuators.
frc::detail::ShuffleboardInstance::Update
void Update() override
Updates all tabs.
frc::ShuffleboardRoot
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:22
wpi::StringRef
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
frc::ShuffleboardTab
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:28
frc::detail::ShuffleboardInstance::GetTab
frc::ShuffleboardTab & GetTab(wpi::StringRef title) override
Gets the tab with the given title, creating it if it does not already exist.
frc::detail::ShuffleboardInstance
Definition: ShuffleboardInstance.h:18
frc
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
frc::detail::ShuffleboardInstance::SelectTab
void SelectTab(int index) override
Selects the tab in the dashboard with the given index in the range [0..n-1], where n is the number of...