]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/font.cpp
implemented wxGetSingleChoiceIndex version that takes wxArrayString
[wxWidgets.git] / src / motif / font.cpp
index 9ce3b3cce0f0b5f3cbbe3c710d02f3c042e5c5e6..c5d72cd94df249f2ae88801d1a45dc39c175d6e0 100644 (file)
@@ -35,9 +35,9 @@
 #include "wx/font.h"
 #include "wx/gdicmn.h"
 #include "wx/utils.h"       // for wxGetDisplay()
-#include "wx/fontutil.h"
+#include "wx/fontutil.h"    // for wxNativeFontInfo
 
-    IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
+IMPLEMENT_DYNAMIC_CLASS(wxFont, wxGDIObject)
 
 // ----------------------------------------------------------------------------
 // private classes
@@ -186,6 +186,14 @@ wxFontRefData::~wxFontRefData()
 // wxFont
 // ----------------------------------------------------------------------------
 
+wxFont::wxFont(const wxNativeFontInfo& info)
+{
+    Init();
+
+    (void)Create(info.pointSize, info.family, info.style, info.weight,
+                 info.underlined, info.faceName, info.encoding);
+}
+
 void wxFont::Init()
 {
     if ( wxTheFontList )