mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-24 07:05:39 +00:00
0387d515fb
Also a general cleanup of CMakeLists.txt and many small code changes to satisfy Clang that complained quite a lot and actually wouldn't compile the binary at all at first.
37 lines
772 B
C++
37 lines
772 B
C++
//
|
|
// GuiInfoPopup.h
|
|
//
|
|
// Popup window used for user notifications.
|
|
//
|
|
|
|
#pragma once
|
|
#ifndef ES_APP_GUIS_GUI_INFO_POPUP_H
|
|
#define ES_APP_GUIS_GUI_INFO_POPUP_H
|
|
|
|
#include "GuiComponent.h"
|
|
#include "Window.h"
|
|
|
|
class ComponentGrid;
|
|
class NinePatchComponent;
|
|
|
|
class GuiInfoPopup : public GuiComponent, public Window::InfoPopup
|
|
{
|
|
public:
|
|
GuiInfoPopup(Window* window, std::string message, int duration);
|
|
~GuiInfoPopup();
|
|
void render(const Transform4x4f& parentTrans) override;
|
|
inline void stop() override { running = false; };
|
|
|
|
private:
|
|
std::string mMessage;
|
|
int mDuration;
|
|
int alpha;
|
|
bool updateState();
|
|
int mStartTime;
|
|
ComponentGrid* mGrid;
|
|
NinePatchComponent* mFrame;
|
|
bool running;
|
|
};
|
|
|
|
#endif // ES_APP_GUIS_GUI_INFO_POPUP_H
|