]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/gdiobj.h
Move constant strings to .rodata/.data.rel.ro ELF segment from .data by making them...
[wxWidgets.git] / include / wx / gtk1 / gdiobj.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gdiobj.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling, Julian Smart
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef __GDIOBJH__
11 #define __GDIOBJH__
12
13 #include "wx/object.h"
14
15 class WXDLLIMPEXP_CORE wxGDIObject : public wxObject
16 {
17 public:
18 inline wxGDIObject() { m_visible = FALSE; };
19 inline ~wxGDIObject() {}
20
21 virtual bool GetVisible() { return m_visible; }
22 virtual void SetVisible( bool visible ) { m_visible = visible; }
23
24 bool IsNull() const { return (m_refData == 0); }
25
26 protected:
27 bool m_visible; /* can a pointer to this object be safely taken?
28 * - only if created within FindOrCreate... */
29 private:
30 DECLARE_DYNAMIC_CLASS(wxGDIObject)
31 };
32
33 #endif
34 // __GDIOBJH__