WPILibC++ 2024.3.2
ShuffleboardInstance.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 <memory>
8#include <string_view>
9
12
13namespace frc::detail {
14
16 public:
19
22
24
25 void Update() override;
26
27 void EnableActuatorWidgets() override;
28
29 void DisableActuatorWidgets() override;
30
31 void SelectTab(int index) override;
32
34
35 private:
36 struct Impl;
37 std::unique_ptr<Impl> m_impl;
38};
39
40} // namespace frc::detail
The root of the data placed in Shuffleboard.
Definition: ShuffleboardRoot.h:19
Represents a tab in the Shuffleboard dashboard.
Definition: ShuffleboardTab.h:26
Definition: ShuffleboardInstance.h:15
void Update() override
Updates all tabs.
frc::ShuffleboardTab & GetTab(std::string_view title) override
Gets the tab with the given title, creating it if it does not already exist.
ShuffleboardInstance(nt::NetworkTableInstance ntInstance)
ShuffleboardInstance & operator=(ShuffleboardInstance &&)=default
void EnableActuatorWidgets() override
Enables all widgets in Shuffleboard that offer user control over actuators.
void DisableActuatorWidgets() override
Disables all widgets in Shuffleboard that offer user control over actuators.
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...
void SelectTab(std::string_view) override
Selects the tab in the dashboard with the given title.
ShuffleboardInstance(ShuffleboardInstance &&)=default
NetworkTables Instance.
Definition: NetworkTableInstance.h:70
basic_string_view< char > string_view
Definition: core.h:501
Definition: RecordingController.h:19