]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontutil.h
added status bar fields styles support (patch 988292)
[wxWidgets.git] / include / wx / fontutil.h
index 2e25a581c671b805a53ea53716a21329950c5e36..56099b4758553bee6b08d20a6999be382419cad7 100644 (file)
@@ -135,6 +135,23 @@ public:
     // default ctor (default copy ctor is ok)
     wxNativeFontInfo() { Init(); }
 
+#if wxUSE_PANGO
+private:
+    void Init(const wxNativeFontInfo& info);
+    void Free();
+
+public:
+    wxNativeFontInfo(const wxNativeFontInfo& info) { Init(info); }
+    ~wxNativeFontInfo() { Free(); }
+
+    wxNativeFontInfo& operator=(const wxNativeFontInfo& info)
+    {
+        Free();
+        Init(info);
+        return *this;
+    }
+#endif // wxUSE_PANGO
+
     // reset to the default state
     void Init();