Files
NXKit/Submodules/UIKit/include/UIEvent.h
T
Daniil Vinogradov d97a69f923 WIP: Switch support
2024-12-21 18:30:43 +01:00

31 lines
575 B
C++

#pragma once
#include <Timer.h>
#include <set>
#include <memory>
#include <vector>
namespace NXKit {
class UITouch;
class UIEvent {
public:
std::set<std::shared_ptr<UITouch>> allTouches() { return _allTouches; }
Timer timestamp() { return _timestamp; }
UIEvent();
virtual ~UIEvent() {}
private:
UIEvent(std::shared_ptr<UITouch> touch);
static std::vector<std::shared_ptr<UIEvent>> activeEvents;
std::set<std::shared_ptr<UITouch>> _allTouches;
Timer _timestamp = Timer();
friend class UIApplication;
friend class UIWindow;
};
}