]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontutil.h
Use bool instead of int. Replace TRUE/FALSE with true/false.
[wxWidgets.git] / include / wx / fontutil.h
index bc49a23d629ed5a86eab318485dd4a082ad1627b..56099b4758553bee6b08d20a6999be382419cad7 100644 (file)
@@ -6,7 +6,7 @@
 // Created:     05.11.99
 // RCS-ID:      $Id$
 // Copyright:   (c) wxWidgets team
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 // General note: this header is private to wxWidgets and is not supposed to be
@@ -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();