13 [[nodiscard]]
auto get_string() const -> std::string_view {
return m_line; }
15 [[nodiscard]]
auto get_cursor() const ->
int {
return m_cursor; }
16 [[nodiscard]]
auto get_cursor_x() const ->
float {
return m_cursor_x; }
17 [[nodiscard]]
auto get_size() const -> glm::vec2 {
return m_size; }
18 [[nodiscard]]
auto get_glyph_layouts() const -> std::span<
kvf::ttf::GlyphLayout const> {
return m_glyph_layouts; }
39 void update_cursor_x();
43 std::vector<
kvf::ttf::GlyphLayout> m_glyph_layouts{};
50 float m_next_glyph_x{};
Opaque interface for a Font Atlas.
Definition font.hpp:8
Concrete drawable Texture.
Definition texture.hpp:31
Drawable geometry for text.
Definition text_geometry.hpp:9
Definition animation.hpp:8
TextHeight
Strongly typed integer for text height.
Definition text_height.hpp:6
Draw primitive.
Definition primitive.hpp:10