Subscenes

This commit is contained in:
2023-01-14 22:06:35 -08:00
parent 9505dd9f06
commit 2e55754c49
50 changed files with 733 additions and 751 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();
};
}