]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gdiobj.h
another unused parameter warning (plenty left in .mm files...)
[wxWidgets.git] / include / wx / gdiobj.h
index 5c9747694adfa436abb80f1ad1d0662c941e7a18..ebe33197534f3fa0c014912dbb6a9895432ca182 100644 (file)
@@ -20,7 +20,7 @@
 // the same native GDI object
 // ----------------------------------------------------------------------------
 
-class WXDLLIMPEXP_CORE wxGDIRefData: public wxObjectRefData { };
+class WXDLLIMPEXP_FWD_CORE wxGDIRefData: public wxObjectRefData { };
 
 // ----------------------------------------------------------------------------
 // wxGDIObject
@@ -31,7 +31,12 @@ class WXDLLIMPEXP_CORE wxGDIObject: public wxObject
 public:
     bool IsNull() const { return m_refData == NULL; }
 
-#if defined(__WXMSW__) || defined(__WXOS2__) || defined(__WXPALMOS__)
+    // older version, for backwards compat
+    bool Ok() const { return IsOk(); }
+    
+    virtual bool IsOk() const { return (m_refData != NULL) ; }
+
+#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
     // Creates the resource
     virtual bool RealizeResource() { return false; }
 
@@ -42,7 +47,7 @@ public:
 
     // Returns handle.
     virtual WXHANDLE GetResourceHandle() const { return 0; }
-#endif // defined(__WXMSW__) || defined(__WXOS2__)
+#endif // defined(__WXMSW__) || defined(__WXPM__)
 
     DECLARE_DYNAMIC_CLASS(wxGDIObject)
 };