diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-02-17 19:18:19 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-02-17 19:18:34 +0100 |
commit | 02e029ed40f801e0710b09062069e7083cd30b93 (patch) | |
tree | b3bd567ad0c03074064d62d32a876920aa58fab4 /include/BodyItem.hpp | |
parent | d4cd63129ae5dff8fd69525424e0f8cb9ae1a905 (diff) |
Add local anime tracking. Check readme for more info about local_anime config
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 { |