aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/Body.hpp1
-rw-r--r--include/BodyItem.hpp5
2 files changed, 5 insertions, 1 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index ec73a29..373c6b4 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -221,7 +221,6 @@ namespace QuickMedia {
mgl::Sprite loading_icon;
mgl::Text progress_text;
- mgl::Text replies_text;
mgl::Text embedded_item_load_text;
bool body_size_changed = false;
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;