Files
allwpilib/simulation/halsim_gui/src/main/native/include/HALSimGui.h

35 lines
902 B
C
Raw Normal View History

// 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:
2020-08-26 00:35:44 -07:00
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