FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::TextUtil Class Reference

Opaque,static text measurement utility functions. More...

#include <TextUtil.h>

Static Public Member Functions

static TextMetrics Measure (ImFont *font, float size, const char *text)
 Measures the width and height of a text string for a font and size.
static float TextWidth (ImFont *font, float size, const char *text)
 Returns only the width of a text string.
static float TextHeight (ImFont *font, float size, const char *text)
 Returns only the height of a text string.
static float MaxWidth (ImFont *titleFont, float titleSize, const char *titleA, const char *titleB, ImFont *descFont, float descSize, const char *descA, const char *descB)
 Returns the widest of two title/description text pairings.

Detailed Description

Opaque,static text measurement utility functions.

Warning
Should NEVER be constructed.

Member Function Documentation

◆ MaxWidth()

float FuncDoodle::TextUtil::MaxWidth ( ImFont * titleFont,
float titleSize,
const char * titleA,
const char * titleB,
ImFont * descFont,
float descSize,
const char * descA,
const char * descB )
static

Returns the widest of two title/description text pairings.

◆ Measure()

TextMetrics FuncDoodle::TextUtil::Measure ( ImFont * font,
float size,
const char * text )
static

Measures the width and height of a text string for a font and size.

◆ TextHeight()

float FuncDoodle::TextUtil::TextHeight ( ImFont * font,
float size,
const char * text )
static

Returns only the height of a text string.

◆ TextWidth()

float FuncDoodle::TextUtil::TextWidth ( ImFont * font,
float size,
const char * text )
static

Returns only the width of a text string.


The documentation for this class was generated from the following files: