Unravel Engine C++ Reference
|
#include <text_metrics.h>
Public Member Functions | |
text_metrics (font_manager *manager) | |
auto | append_text (font_handle handle, const char *str, const char *end=nullptr) -> void |
Append an ASCII/utf-8 string to the metrics helper. | |
auto | append_text (font_handle handle, const wchar_t *str, const wchar_t *end=nullptr) -> void |
Append a wide char string to the metrics helper. | |
auto | get_width () const -> float |
Return the width of the measured text. | |
auto | get_height () const -> float |
Return the height of the measured text. | |
auto | clear_text () -> void |
Clear the width and height of the measured text. | |
Definition at line 13 of file text_metrics.h.
gfx::text_metrics::text_metrics | ( | font_manager * | manager | ) |
Definition at line 11 of file text_metrics.cpp.
void gfx::text_metrics::append_text | ( | font_handle | handle, |
const char * | str, | ||
const char * | end = nullptr ) -> void |
Append an ASCII/utf-8 string to the metrics helper.
Definition at line 20 of file text_metrics.cpp.
auto gfx::text_metrics::append_text | ( | font_handle | handle, |
const wchar_t * | str, | ||
const wchar_t * | end = nullptr ) -> void |
Append a wide char string to the metrics helper.
void gfx::text_metrics::clear_text | ( | ) | -> void |
Clear the width and height of the measured text.
Definition at line 16 of file text_metrics.cpp.
|
inline |
Return the height of the measured text.
Definition at line 31 of file text_metrics.h.
|
inline |
Return the width of the measured text.
Definition at line 25 of file text_metrics.h.