Skip to content

Commit

Permalink
[SUTK] Added Label::setFontSize()
Browse files Browse the repository at this point in the history
  • Loading branch information
ravi688 committed Dec 29, 2024
1 parent 14febbd commit 3b37803
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions sutk/include/sutk/Label.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,6 @@ namespace SUTK
void setColor(Color4 color) noexcept;
Color4 getColor() const noexcept;
void setFont(UIDriver::FontReference font) noexcept;
void setFontSize(f32 fontSize) noexcept;
};
}
5 changes: 5 additions & 0 deletions sutk/source/Label.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,9 @@ namespace SUTK
{
getText().setFont(font);
}

void Label::setFontSize(f32 fontSize) noexcept
{
getText().setFontSize(fontSize);
}
}

0 comments on commit 3b37803

Please sign in to comment.