]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/motif/font.h
don't draw borders for bitmap buttons with wxBORDER_NONE style
[wxWidgets.git] / include / wx / motif / font.h
index 8b470cf76ea8015d876602b61fdc9b3d27abb530..80f86980ae7c6fe0d7d9996534d11ac356c2ba82 100644 (file)
@@ -53,7 +53,19 @@ public:
     {
         Create(size, family, style, weight, underlined, face, encoding);
     }
-
+    
+    wxFont(const wxSize& pixelSize,
+           wxFontFamily family,
+           wxFontStyle style,
+           wxFontWeight weight,
+           bool underlined = false,
+           const wxString& face = wxEmptyString,
+           wxFontEncoding encoding = wxFONTENCODING_DEFAULT)
+    {
+        Create(10, family, style, weight, underlined, face, encoding);
+        SetPixelSize(pixelSize);
+    }
+    
     bool Create(int size,
                 wxFontFamily family,
                 wxFontStyle style,
@@ -87,7 +99,7 @@ public:
     virtual void SetUnderlined(bool underlined);
     virtual void SetEncoding(wxFontEncoding encoding);
 
-    WXDECLARE_COMPAT_SETTERS
+    wxDECLARE_COMMON_FONT_METHODS();
 
     // Implementation