aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2022-04-09 00:48:44 +0200
committerdec05eba <dec05eba@protonmail.com>2022-04-09 00:48:44 +0200
commit6da71b830ead4b7ecb9a71e05dcd50c4abd3aa4f (patch)
tree474cb858eb9f12ff584c2cfd966907d5bd9f9cf7 /include
parent110296e210e7de15c6a219b25d935feb9069131e (diff)
Proper reaction wrapping
Diffstat (limited to 'include')
-rw-r--r--include/BodyItem.hpp1
-rw-r--r--include/Text.hpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/BodyItem.hpp b/include/BodyItem.hpp
index 510d0e9..819b730 100644
--- a/include/BodyItem.hpp
+++ b/include/BodyItem.hpp
@@ -57,6 +57,7 @@ namespace QuickMedia {
void *userdata = nullptr;
mgl::vec2f size;
mgl::Color text_color;
+ int num_lines = 1;
};
class BodyItem {
diff --git a/include/Text.hpp b/include/Text.hpp
index a8a17be..fd1277f 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -75,7 +75,7 @@ namespace QuickMedia
void replace(size_t start_index, size_t length, const std::string &insert_str);
int getCaretIndex() const;
-
+ int getNumLines() const;
void set_color(mgl::Color color);
void setLineSpacing(float lineSpacing);