feat: key pressed event interception & 'owner' input.add_callback third argument

This commit is contained in:
MihailRis
2025-01-02 20:51:43 +03:00
parent 7fce735ca1
commit b9ff1db086
17 changed files with 192 additions and 63 deletions
+2 -1
View File
@@ -2,11 +2,12 @@
#include "UINode.hpp"
#include "commons.hpp"
#include "util/ObjectsKeeper.hpp"
#include <vector>
namespace gui {
class Container : public UINode {
class Container : public UINode, public util::ObjectsKeeper {
int prevScrollY = -1;
protected:
std::vector<std::shared_ptr<UINode>> nodes;