]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/font.h
Set/GetTitle out of wxWindowBase, forked and put to gtk/window.h and mgl/window.h...
[wxWidgets.git] / include / wx / motif / font.h
index d6aeb9e1bfe80bd40db8a7513cec499b0e228e3e..1f086068cf9152cdd38442a55d6a00c2e88522a9 100644 (file)
@@ -16,6 +16,8 @@
     #pragma interface "font.h"
 #endif
 
+class wxXFont;
+
 // Font
 class wxFont : public wxFontBase
 {
@@ -37,13 +39,7 @@ public:
         (void)Create(size, family, style, weight, underlined, face, encoding);
     }
 
-    wxFont(const wxNativeFontInfo& info)
-    {
-        Init();
-
-        (void)Create(info.pointSize, info.family, info.style, info.weight,
-                     info.underlined, info.faceName, info.encoding);
-    }
+    wxFont(const wxNativeFontInfo& info);
 
     bool Create(int size,
                 int family,
@@ -89,8 +85,8 @@ public:
     // of the fonts and a mapping file.
 
     // Return font struct, and optionally the Motif font list
-    class wxXFont* GetInternalFont(double scale = 1.0,
-                                   WXDisplay* display = NULL) const;
+    wxXFont *GetInternalFont(double scale = 1.0,
+                             WXDisplay* display = NULL) const;
 
     // These two are helper functions for convenient access of the above.
     WXFontStructPtr GetFontStruct(double scale = 1.0,