]> git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/carbon/gdiobj.h
corrected wxCHECK messages
[wxWidgets.git] / include / wx / mac / carbon / gdiobj.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gdiobj.h
3 // Purpose: wxGDIObject class: base class for other GDI classes
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // RCS-ID: $Id$
8 // Copyright: (c) Stefan Csomor
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GDIOBJ_H_
13 #define _WX_GDIOBJ_H_
14
15 #include "wx/object.h"
16
17 class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
18 public:
19 inline wxGDIRefData()
20 {
21 }
22 };
23
24 #define M_GDIDATA ((wxGDIRefData *)m_refData)
25
26 class WXDLLEXPORT wxGDIObject: public wxObject
27 {
28 DECLARE_DYNAMIC_CLASS(wxGDIObject)
29
30 public:
31 wxGDIObject() : m_visible(false) { }
32 ~wxGDIObject() { }
33
34 bool IsNull() const { return (m_refData == 0); }
35
36 virtual bool GetVisible() { return m_visible; }
37 virtual void SetVisible(bool v) { m_visible = v; }
38
39 protected:
40 bool m_visible; // Can a pointer to this object be safely taken?
41 // - only if created within FindOrCreate...
42 };
43
44 #endif
45 // _WX_GDIOBJ_H_