aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-03-26 16:45:41 +0100
committerdec05eba <dec05eba@protonmail.com>2021-03-26 16:45:41 +0100
commitda827778f8c5d2f0cfc56b297099ba58454c38ed (patch)
tree9e17efe65eca94a23374aa8ea00da0da50d45bfe /include/Body.hpp
parentd96e65b2abf2a569a4be4c160fa30a504abdb2fc (diff)
Add soundcloud
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 5e68b5b..cc11664 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -33,6 +33,12 @@ namespace QuickMedia {
CIRCLE
};
+ // TODO: Remove and create an Userdata class instead to replace the void* userdata in BodyItem
+ class BodyItemExtra {
+ public:
+ virtual ~BodyItemExtra() = default;
+ };
+
struct Reaction {
std::unique_ptr<Text> text;
void *userdata = nullptr;
@@ -146,6 +152,7 @@ namespace QuickMedia {
ThumbnailMaskType thumbnail_mask_type = ThumbnailMaskType::NONE;
sf::Vector2i thumbnail_size;
std::vector<Reaction> reactions; // TODO: Move to a different body item type
+ std::shared_ptr<BodyItemExtra> extra; // TODO: Remove
private:
// TODO: Clean up these strings when set in text, and get_title for example should return |title_text.getString()|
// TODO: Use sf::String instead, removes the need to convert to utf32 every time the text is dirty (for example when resizing window)