Subscenes

This commit is contained in:
2023-01-14 22:06:35 -08:00
parent 15e7efb7f3
commit 0558b3bb25
35 changed files with 733 additions and 116 deletions

View File

@ -57,6 +57,10 @@ void UILabel::setFontSize(float_t fontSize) {
this->needsRebuffering = true;
}
float_t UILabel::getFontSize() {
return this->fontSize;
}
float_t UILabel::getContentWidth() {
this->updateMesh();
return this->measure.getWidth();

View File

@ -68,6 +68,13 @@ namespace Dawn {
*/
void setFontSize(float_t fontSize);
/**
* Get the labels' current font size.
*
* @return Font size of the label.
*/
float_t getFontSize();
~UILabel();
};
}