]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/gdiobj.h
Forgot to commit this as part of the CocoaGetWxToBoundsTransform change.
[wxWidgets.git] / include / wx / gtk / gdiobj.h
index 23e4077cc7cda6a753615df9ced5f5daf39da07d..d87d6b9542759b979f667daa3bd30f2fc85dde18 100644 (file)
@@ -13,7 +13,7 @@
 
 #include "wx/object.h"
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface
 #endif
 
@@ -26,6 +26,8 @@ public:
     virtual bool GetVisible() { return m_visible; }
     virtual void SetVisible( bool visible ) { m_visible = visible; }
 
+    bool IsNull() const { return (m_refData == 0); }
+
 protected:
     bool m_visible; /* can a pointer to this object be safely taken?
                      * - only if created within FindOrCreate... */