#include <gthfont.h>
|
| | GthFont () |
| |
| | GthFont (zenkit::Read &data, std::string_view ftex, const Tempest::Color &cl) |
| |
| | GthFont (const GthFont &)=default |
| |
| | GthFont (GthFont &&)=default |
| |
| GthFont & | operator= (const GthFont &)=default |
| |
| GthFont & | operator= (GthFont &&)=default |
| |
| int | pixelSize () const |
| |
| void | setScale (float s) |
| |
| void | drawText (Tempest::Painter &p, int x, int y, int w, int h, std::string_view txt, Tempest::AlignFlag align, int firstLine=0) const |
| |
| void | drawText (Tempest::Painter &p, int x, int y, std::string_view txt) const |
| |
| auto | textSize (const std::string_view txt) const -> Tempest::Size |
| |
| auto | textSize (const char *b, const char *e) const -> Tempest::Size |
| |
| auto | textSize (const uint8_t *b, const uint8_t *e) const -> Tempest::Size |
| |
| auto | textSize (int w, std::string_view txt) const -> Tempest::Size |
| |
| auto | lineCount (int w, std::string_view txt) const -> int32_t |
| |
Definition at line 7 of file gthfont.h.
◆ GthFont() [1/4]
◆ GthFont() [2/4]
| GthFont::GthFont |
( |
zenkit::Read & |
data, |
|
|
std::string_view |
ftex, |
|
|
const Tempest::Color & |
cl |
|
) |
| |
◆ GthFont() [3/4]
| GthFont::GthFont |
( |
const GthFont & |
| ) |
|
|
default |
◆ GthFont() [4/4]
◆ drawText() [1/2]
| void GthFont::drawText |
( |
Tempest::Painter & |
p, |
|
|
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
std::string_view |
txt, |
|
|
Tempest::AlignFlag |
align, |
|
|
int |
firstLine = 0 |
|
) |
| const |
◆ drawText() [2/2]
| void GthFont::drawText |
( |
Tempest::Painter & |
p, |
|
|
int |
x, |
|
|
int |
y, |
|
|
std::string_view |
txt |
|
) |
| const |
◆ lineCount()
| int32_t GthFont::lineCount |
( |
int |
w, |
|
|
std::string_view |
txt |
|
) |
| const -> int32_t |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ pixelSize()
| int GthFont::pixelSize |
( |
| ) |
const |
◆ setScale()
| void GthFont::setScale |
( |
float |
s | ) |
|
◆ textSize() [1/4]
| Size GthFont::textSize |
( |
const char * |
b, |
|
|
const char * |
e |
|
) |
| const -> Tempest::Size |
◆ textSize() [2/4]
| Size GthFont::textSize |
( |
const std::string_view |
txt | ) |
const -> Tempest::Size |
◆ textSize() [3/4]
| Size GthFont::textSize |
( |
const uint8_t * |
b, |
|
|
const uint8_t * |
e |
|
) |
| const -> Tempest::Size |
◆ textSize() [4/4]
| Size GthFont::textSize |
( |
int |
w, |
|
|
std::string_view |
txt |
|
) |
| const -> Tempest::Size |
The documentation for this class was generated from the following files: