Files
allwpilib/simulation/halsim_gui/src/main/native/include/HALSimGui.h
2022-02-07 00:39:45 -08:00

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