diff options
author | dec05eba <dec05eba@protonmail.com> | 2022-04-09 00:48:44 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2022-04-09 00:48:44 +0200 |
commit | 6da71b830ead4b7ecb9a71e05dcd50c4abd3aa4f (patch) | |
tree | 474cb858eb9f12ff584c2cfd966907d5bd9f9cf7 /include | |
parent | 110296e210e7de15c6a219b25d935feb9069131e (diff) |
Proper reaction wrapping
Diffstat (limited to 'include')
-rw-r--r-- | include/BodyItem.hpp | 1 | ||||
-rw-r--r-- | include/Text.hpp | 2 |
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); |