mirror of
https://github.com/arabine/open-story-teller.git
synced 2025-12-06 17:09:06 +01:00
35 lines
469 B
C++
35 lines
469 B
C++
#ifndef WINDOWBASE_H
|
|
#define WINDOWBASE_H
|
|
|
|
#include <string>
|
|
|
|
class WindowBase
|
|
{
|
|
public:
|
|
WindowBase(const std::string &title);
|
|
|
|
bool IsDisabled() const {
|
|
return m_disabled;
|
|
}
|
|
|
|
virtual void Draw() = 0;
|
|
|
|
bool BeginDraw();
|
|
void EndDraw();
|
|
|
|
void Disable() {
|
|
m_disabled = true;
|
|
}
|
|
|
|
void Enable() {
|
|
m_disabled = false;
|
|
}
|
|
|
|
private:
|
|
|
|
bool m_disabled{false};
|
|
std::string m_title;
|
|
};
|
|
|
|
#endif // WINDOWBASE_H
|