aboutsummaryrefslogtreecommitdiff
path: root/include/Body.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-21 03:49:17 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-21 03:49:17 +0200
commit40e0f8f5d8c3e480f01a2d71b6a493247adcb77f (patch)
treeccc3c0a7c82be8f5dbe86dfc712cce3da7e2ad59 /include/Body.hpp
parent5c72463c029804c85479d2c4426397d932c88ee1 (diff)
Initial matrix support
Diffstat (limited to 'include/Body.hpp')
-rw-r--r--include/Body.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/Body.hpp b/include/Body.hpp
index 3dfbeaa..0bea3c2 100644
--- a/include/Body.hpp
+++ b/include/Body.hpp
@@ -21,8 +21,19 @@ namespace QuickMedia {
dirty = true;
}
+ void append_title(std::string str) {
+ title += str;
+ dirty = true;
+ }
+
void set_description(std::string new_description) {
description = std::move(new_description);
+ dirty_description = true;
+ }
+
+ void append_description(std::string str) {
+ description += str;
+ dirty_description = true;
}
const std::string& get_title() const { return title; }
@@ -35,6 +46,7 @@ namespace QuickMedia {
std::string author;
bool visible;
bool dirty;
+ bool dirty_description;
std::unique_ptr<Text> title_text;
std::unique_ptr<Text> description_text;
// Used by image boards for example. The elements are indices to other body items
@@ -62,6 +74,7 @@ namespace QuickMedia {
void select_first_item();
void reset_selected();
void clear_items();
+ void append_items(BodyItems new_items);
void clear_thumbnails();
BodyItem* get_selected() const;