diff options
author | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-24 09:49:49 +0100 |
---|---|---|
committer | heavydemon21 <nielsstunnebrink1@gmail.com> | 2024-12-24 09:49:49 +0100 |
commit | b9051627db1741fe373c08ab43170c257625073f (patch) | |
tree | 06c5c4a95192048738e7f3c5fa2bb4666e754f36 /src/crepe/api/Button.h | |
parent | a5f8b34f4701863901e89abe5b0b604fd9e553b2 (diff) |
feedback
Diffstat (limited to 'src/crepe/api/Button.h')
-rw-r--r-- | src/crepe/api/Button.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/crepe/api/Button.h b/src/crepe/api/Button.h index d7dc747..e986c04 100644 --- a/src/crepe/api/Button.h +++ b/src/crepe/api/Button.h @@ -1,7 +1,8 @@ #pragma once +#include "../types.h" + #include "UIObject.h" -#include "types.h" namespace crepe { @@ -46,13 +47,14 @@ public: */ virtual int get_instances_max() const { return 1; } +public: + Data data; + private: //! friend relation hover variable friend class InputSystem; //! Indicates whether the mouse is currently hovering over the button bool hover = false; - - Data data; }; } // namespace crepe |