aboutsummaryrefslogtreecommitdiff
path: root/include/Text.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Text.hpp')
-rw-r--r--include/Text.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Text.hpp b/include/Text.hpp
index 02a6b62..245284f 100644
--- a/include/Text.hpp
+++ b/include/Text.hpp
@@ -10,8 +10,6 @@
#include <vector>
#include <string_view>
#include <array>
-#include "types.hpp"
-#include <assert.h>
namespace mgl {
class Font;
@@ -143,7 +141,7 @@ namespace QuickMedia
bool single_line_edit = false;
private:
- enum class CaretMoveDirection : u8
+ enum class CaretMoveDirection : uint8_t
{
NONE,
UP,
@@ -172,7 +170,10 @@ namespace QuickMedia
float font_get_real_height(mgl::Font *font);
float get_text_quad_left_side(const VertexRef &vertex_ref) const;
float get_text_quad_right_side(const VertexRef &vertex_ref) const;
+ float get_text_quad_top_side(const VertexRef &vertex_ref) const;
float get_text_quad_bottom_side(const VertexRef &vertex_ref) const;
+ float get_text_quad_height(const VertexRef &vertex_ref) const;
+ void move_vertex_lines_by_largest_items(int vertices_linear_end);
// If the index is past the end, then the caret offset is the right side of the last character, rather than the left side
float get_caret_offset_by_caret_index(int index) const;
VertexRef& get_vertex_ref_clamp(int index);