ES-DE/es-app/src/guis/GuiInfoPopup.h

41 lines
827 B
C
Raw Normal View History

// SPDX-License-Identifier: MIT
2020-06-22 15:27:53 +00:00
//
// EmulationStation Desktop Edition
2020-06-22 15:27:53 +00:00
// GuiInfoPopup.h
//
// Popup window used for user notifications.
//
#ifndef ES_APP_GUIS_GUI_INFO_POPUP_H
#define ES_APP_GUIS_GUI_INFO_POPUP_H
#include "GuiComponent.h"
#include "Window.h"
2017-11-01 22:21:10 +00:00
class ComponentGrid;
class NinePatchComponent;
class GuiInfoPopup : public GuiComponent, public Window::InfoPopup
{
public:
2020-06-22 15:27:53 +00:00
GuiInfoPopup(Window* window, std::string message, int duration);
~GuiInfoPopup();
2021-06-11 15:02:06 +00:00
2020-06-22 15:27:53 +00:00
void render(const Transform4x4f& parentTrans) override;
void stop() override { mRunning = false; }
2020-06-22 15:27:53 +00:00
private:
2020-06-22 15:27:53 +00:00
bool updateState();
2021-06-11 15:02:06 +00:00
2020-06-22 15:27:53 +00:00
ComponentGrid* mGrid;
NinePatchComponent* mFrame;
2021-06-11 15:02:06 +00:00
std::string mMessage;
int mDuration;
int mAlpha;
int mStartTime;
bool mRunning;
};
#endif // ES_APP_GUIS_GUI_INFO_POPUP_H