Add wxFont::Underlined() and MakeUnderlined() methods.
Add two more helpers for consistency with the existing methods such as Bold() and MakeBold(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -513,7 +513,20 @@ wxFont& wxFont::MakeItalic()
|
||||
wxFont wxFont::Italic() const
|
||||
{
|
||||
wxFont font(*this);
|
||||
font.SetStyle(wxFONTSTYLE_ITALIC);
|
||||
font.MakeItalic();
|
||||
return font;
|
||||
}
|
||||
|
||||
wxFont& wxFont::MakeUnderlined()
|
||||
{
|
||||
SetUnderlined(true);
|
||||
return *this;
|
||||
}
|
||||
|
||||
wxFont wxFont::Underlined() const
|
||||
{
|
||||
wxFont font(*this);
|
||||
font.MakeUnderlined();
|
||||
return font;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user