mirror of
https://github.com/ndeadly/MissionControl
synced 2024-11-30 16:19:13 +00:00
28 lines
518 B
C++
28 lines
518 B
C++
|
#pragma once
|
||
|
|
||
|
#include "application.hpp"
|
||
|
#include "element.hpp"
|
||
|
|
||
|
namespace mc::ui {
|
||
|
|
||
|
class Scene {
|
||
|
public:
|
||
|
Scene();
|
||
|
virtual ~Scene() {};
|
||
|
|
||
|
void setFocus(bool focus);
|
||
|
bool hasFocus(void);
|
||
|
|
||
|
bool requestFocus(Scene *scene);
|
||
|
bool releaseFocus(Scene *scene);
|
||
|
|
||
|
virtual void draw(void) {};
|
||
|
virtual void handleInput(const mc::app::UserInput *input) {};
|
||
|
|
||
|
private:
|
||
|
bool m_hasFocus;
|
||
|
|
||
|
};
|
||
|
|
||
|
}
|