Add missing wxFont constructor to wxMotif
This commit is contained in:
parent
837b7ca3e1
commit
86d586222d
2 changed files with 9 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ public:
|
|||
|
||||
wxFont(const wxFontInfo& info);
|
||||
|
||||
wxFont(const wxString& nativeFontInfoString);
|
||||
|
||||
wxFont(const wxNativeFontInfo& info);
|
||||
|
||||
wxFont(int size,
|
||||
|
|
|
|||
|
|
@ -213,6 +213,13 @@ wxFont::wxFont(const wxNativeFontInfo& info)
|
|||
(void)Create(info.GetXFontName());
|
||||
}
|
||||
|
||||
wxFont::wxFont(const wxString& nativeFontInfoString)
|
||||
{
|
||||
wxNativeFontInfo info;
|
||||
if ( info.FromString(nativeFontInfoString) )
|
||||
(void)Create(info.GetXFontName());
|
||||
}
|
||||
|
||||
wxFont::wxFont(const wxFontInfo& info)
|
||||
{
|
||||
m_refData = new wxFontRefData(info);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue