X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36b3b54ad8431bca0fa53fa8acae5ba6d4c3e9c7..284f2b59db428e6ab05d31ff26b12043b6d42ff3:/include/wx/gtk/gdiobj.h diff --git a/include/wx/gtk/gdiobj.h b/include/wx/gtk/gdiobj.h index ac8e8e9447..d87d6b9542 100644 --- a/include/wx/gtk/gdiobj.h +++ b/include/wx/gtk/gdiobj.h @@ -13,24 +13,26 @@ #include "wx/object.h" -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface #endif class wxGDIObject : public wxObject { -DECLARE_DYNAMIC_CLASS(wxGDIObject) - public: - inline wxGDIObject() { m_visible = FALSE; }; - inline ~wxGDIObject() {}; + inline wxGDIObject() { m_visible = FALSE; }; + inline ~wxGDIObject() {} + + virtual bool GetVisible() { return m_visible; } + virtual void SetVisible( bool visible ) { m_visible = visible; } - 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... */ + bool m_visible; /* can a pointer to this object be safely taken? + * - only if created within FindOrCreate... */ +private: + DECLARE_DYNAMIC_CLASS(wxGDIObject) }; #endif