Create WindowHandler
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m25s
Some checks failed
Run ReCI Build Test / Explore-Gitea-Actions (push) Failing after 1m25s
This commit is contained in:
@@ -122,6 +122,28 @@ namespace ReWindow {
|
||||
virtual void OnInput(const InputServiceEvent& e) {};
|
||||
};
|
||||
|
||||
class WindowHandler {
|
||||
public:
|
||||
WindowHandler() = default;
|
||||
public:
|
||||
void PollEvents();
|
||||
void Refresh();
|
||||
void ManagedRefresh();
|
||||
void UpdateFrameTiming(float frame_time);
|
||||
public:
|
||||
void Raise();
|
||||
void Lower();
|
||||
public:
|
||||
void Fullscreen();
|
||||
void RestoreFromFullscreen();
|
||||
public:
|
||||
void processOnClose();
|
||||
void processOnOpen();
|
||||
void processFocusIn();
|
||||
void processFocusOut();
|
||||
void processOnInput();
|
||||
};
|
||||
|
||||
|
||||
|
||||
// This may be better split into multiple component classes.
|
||||
|
Reference in New Issue
Block a user