mirror of https://github.com/AxioDL/metaforce.git
49 lines
2.6 KiB
C++
49 lines
2.6 KiB
C++
|
#pragma once
|
||
|
|
||
|
#include <array>
|
||
|
#include <type_traits>
|
||
|
#include <vector>
|
||
|
|
||
|
namespace aurora {
|
||
|
struct WindowSize;
|
||
|
|
||
|
struct App;
|
||
|
struct AppDelegate {
|
||
|
AppDelegate() = default;
|
||
|
virtual ~AppDelegate() noexcept = default;
|
||
|
AppDelegate(const AppDelegate&) = delete;
|
||
|
AppDelegate& operator=(const AppDelegate&) = delete;
|
||
|
AppDelegate(AppDelegate&&) = delete;
|
||
|
AppDelegate& operator=(AppDelegate&&) = delete;
|
||
|
|
||
|
virtual void onAppLaunched() noexcept = 0;
|
||
|
virtual bool onAppIdle(float dt) noexcept = 0;
|
||
|
virtual void onAppDraw() noexcept = 0;
|
||
|
virtual void onAppPostDraw() noexcept = 0;
|
||
|
virtual void onAppExiting() noexcept = 0;
|
||
|
|
||
|
// virtual void resized([[maybe_unused]] const WindowSize& rect, [[maybe_unused]] bool sync) noexcept {}
|
||
|
// virtual void mouseDown([[maybe_unused]] const SWindowCoord& coord, [[maybe_unused]] EMouseButton button,
|
||
|
// [[maybe_unused]] EModifierKey mods) noexcept {}
|
||
|
// virtual void mouseUp([[maybe_unused]] const SWindowCoord& coord, [[maybe_unused]] EMouseButton button,
|
||
|
// [[maybe_unused]] EModifierKey mods) noexcept {}
|
||
|
// virtual void mouseMove([[maybe_unused]] const SWindowCoord& coord) noexcept {}
|
||
|
// virtual void mouseEnter([[maybe_unused]] const SWindowCoord& coord) noexcept {}
|
||
|
// virtual void mouseLeave([[maybe_unused]] const SWindowCoord& coord) noexcept {}
|
||
|
// virtual void scroll([[maybe_unused]] const SWindowCoord& coord, [[maybe_unused]] const SScrollDelta& scroll) noexcept {}
|
||
|
//
|
||
|
// virtual void touchDown([[maybe_unused]] const STouchCoord& coord, [[maybe_unused]] uintptr_t tid) noexcept {}
|
||
|
// virtual void touchUp([[maybe_unused]] const STouchCoord& coord, [[maybe_unused]] uintptr_t tid) noexcept {}
|
||
|
// virtual void touchMove([[maybe_unused]] const STouchCoord& coord, [[maybe_unused]] uintptr_t tid) noexcept {}
|
||
|
//
|
||
|
// virtual void charKeyDown([[maybe_unused]] unsigned long charCode, [[maybe_unused]] EModifierKey mods,
|
||
|
// [[maybe_unused]] bool isRepeat) noexcept {}
|
||
|
// virtual void charKeyUp([[maybe_unused]] unsigned long charCode, [[maybe_unused]] EModifierKey mods) noexcept {}
|
||
|
// virtual void specialKeyDown([[maybe_unused]] ESpecialKey key, [[maybe_unused]] EModifierKey mods,
|
||
|
// [[maybe_unused]] bool isRepeat) noexcept {}
|
||
|
// virtual void specialKeyUp([[maybe_unused]] ESpecialKey key, [[maybe_unused]] EModifierKey mods) noexcept {}
|
||
|
// virtual void modKeyDown([[maybe_unused]] EModifierKey mod, [[maybe_unused]] bool isRepeat) noexcept {}
|
||
|
// virtual void modKeyUp([[maybe_unused]] EModifierKey mod) noexcept {}
|
||
|
};
|
||
|
} // namespace aurora
|