diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-07 15:01:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-08 23:37:43 +0200 |
commit | 1406ea55305666958d265855cf400e7fc1cdbbf7 (patch) | |
tree | 07dfe40df98cf8939c7f1bcc73188b1ad3a1073c /include/BodyItem.hpp | |
parent | 8433b0f6f7414a040b25b34515d75b907c584321 (diff) |
4chan: move replies text to reactions, clear reactions when not visible on screen
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; |