aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
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);