mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
35 lines
902 B
C++
35 lines
902 B
C++
// Copyright (c) FIRST and other WPILib contributors.
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
#pragma once
|
|
|
|
#include <glass/MainMenuBar.h>
|
|
#include <glass/WindowManager.h>
|
|
#include <glass/networktables/NetworkTablesProvider.h>
|
|
|
|
#include <functional>
|
|
#include <memory>
|
|
|
|
#include "HALProvider.h"
|
|
|
|
namespace halsimgui {
|
|
|
|
class HALSimGui {
|
|
public:
|
|
static void GlobalInit();
|
|
|
|
static glass::MainMenuBar mainMenu;
|
|
static std::unique_ptr<glass::WindowManager> manager;
|
|
|
|
static std::unique_ptr<HALProvider> halProvider;
|
|
static std::unique_ptr<glass::NetworkTablesProvider> ntProvider;
|
|
};
|
|
|
|
void AddGuiInit(std::function<void()> initialize);
|
|
void AddGuiLateExecute(std::function<void()> execute);
|
|
void AddGuiEarlyExecute(std::function<void()> execute);
|
|
void GuiExit();
|
|
|
|
} // namespace halsimgui
|