diff options
Diffstat (limited to 'include/BodyItem.hpp')
-rw-r--r-- | include/BodyItem.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/BodyItem.hpp b/include/BodyItem.hpp index 2e7dad4..510d0e9 100644 --- a/include/BodyItem.hpp +++ b/include/BodyItem.hpp @@ -52,8 +52,11 @@ namespace QuickMedia { }; struct Reaction { + std::string text_str; std::unique_ptr<Text> text; void *userdata = nullptr; + mgl::vec2f size; + mgl::Color text_color; }; class BodyItem { @@ -113,6 +116,7 @@ namespace QuickMedia { dirty_author = true; } + void add_reaction(std::string text, void *userdata, mgl::Color text_color); void add_reaction(std::string text, void *userdata); // Returns true if reaction is found @@ -148,6 +152,7 @@ namespace QuickMedia { bool dirty_description; bool dirty_author; bool dirty_timestamp; + bool dirty_reactions; // TODO: Remove this and instead if |thumbnail_url| starts with file://, then its a local file bool thumbnail_is_local; std::unique_ptr<Text> title_text; |