From 02e029ed40f801e0710b09062069e7083cd30b93 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Feb 2022 19:18:19 +0100 Subject: Add local anime tracking. Check readme for more info about local_anime config --- include/BodyItem.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'include/BodyItem.hpp') 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 +#include #include namespace mgl { @@ -30,10 +31,24 @@ namespace QuickMedia { BODY_THEME_MODERN_SPACIOUS }; + struct ThumbnailWidget { + mgl::vec2f position; + mgl::vec2f size; + }; + + struct Widgets { + std::optional 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 { -- cgit v1.2.3