Add wxFontInfo::Style() for consistency with Weight()

This will also be useful when changing the existing code to use
wxFontInfo().
This commit is contained in:
Vadim Zeitlin
2018-09-12 23:16:29 +02:00
parent 11ab3b4786
commit c61fc16f96
2 changed files with 23 additions and 0 deletions

View File

@@ -398,6 +398,9 @@ public:
/**
Use an italic version of the font.
This is a wrapper for Style() calling it with ::wxFONTSTYLE_ITALIC
argument.
@see ::wxFontStyle, wxFont::SetStyle()
*/
wxFontInfo& Italic(bool italic = true);
@@ -405,10 +408,20 @@ public:
/**
Use a slanted version of the font.
This is a wrapper for Style() calling it with ::wxFONTSTYLE_SLANT
argument.
@see ::wxFontStyle, wxFont::SetStyle()
*/
wxFontInfo& Slant(bool slant = true);
/**
Specify the style of the font using one of wxFontStyle constants.
@since 3.1.2
*/
wxFontInfo& Style(wxFontStyle style);
/**
Set anti-aliasing flag.