]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk1/gdiobj.h
more non-const string literal warnings correction
[wxWidgets.git] / include / wx / gtk1 / gdiobj.h
index 23e4077cc7cda6a753615df9ced5f5daf39da07d..1c13ef81724dca99b7d483ff2b1f2f97d166538b 100644 (file)
 
 #include "wx/object.h"
 
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
 #pragma interface
 #endif
 
-class wxGDIObject : public wxObject
+class WXDLLIMPEXP_CORE wxGDIObject : public wxObject
 {
 public:
     inline wxGDIObject() { m_visible = FALSE; };
@@ -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... */