diff options
Diffstat (limited to 'include/BodyItem.hpp')
-rw-r--r-- | include/BodyItem.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/BodyItem.hpp b/include/BodyItem.hpp index eef674e..2e7dad4 100644 --- a/include/BodyItem.hpp +++ b/include/BodyItem.hpp @@ -2,6 +2,7 @@ #include "Text.hpp" #include <memory> +#include <optional> #include <mglpp/graphics/Text.hpp> namespace mgl { @@ -30,10 +31,24 @@ namespace QuickMedia { BODY_THEME_MODERN_SPACIOUS }; + struct ThumbnailWidget { + mgl::vec2f position; + mgl::vec2f size; + }; + + struct Widgets { + std::optional<ThumbnailWidget> thumbnail; + }; + // TODO: Remove and create an Userdata class instead to replace the void* userdata in BodyItem class BodyItemExtra { public: virtual ~BodyItemExtra() = default; + + virtual void draw_overlay(mgl::Window &window, const Widgets &widgets) { + (void)window; + (void)widgets; + } }; struct Reaction { |