]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/gdiobj.h
14293b584102ee5641187cef86d880ca599d7930
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxGDIObject class: base class for other GDI classes
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
15 #include "wx/object.h"
17 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
18 #pragma interface "gdiobj.h"
21 class WXDLLEXPORT wxGDIRefData
: public wxObjectRefData
{
28 #define M_GDIDATA ((wxGDIRefData *)m_refData)
30 class WXDLLEXPORT wxGDIObject
: public wxObject
32 DECLARE_DYNAMIC_CLASS(wxGDIObject
)
34 inline wxGDIObject() { m_visible
= FALSE
; };
35 inline ~wxGDIObject() {};
37 inline bool IsNull() const { return (m_refData
== 0); }
39 virtual bool GetVisible() { return m_visible
; }
40 virtual void SetVisible(bool v
) { m_visible
= v
; }
43 bool m_visible
; // Can a pointer to this object be safely taken?
44 // - only if created within FindOrCreate...