]> git.saurik.com Git - wxWidgets.git/blob - include/wx/cocoa/gdiobj.h
Get rid of wxFontMapper in wxBase library.
[wxWidgets.git] / include / wx / cocoa / gdiobj.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: gdiobj.h
3 // Purpose: wxGDIObject class: base class for other GDI classes
4 // Author: David Elliott <dfe@cox.net>
5 // Modified by:
6 // Created: 2002/11/27
7 // RCS-ID:
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GDIOBJ_H_
13 #define _WX_GDIOBJ_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "gdiobj.h"
17 #endif
18
19 #include "wx/object.h"
20
21 class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
22 public:
23 inline wxGDIRefData()
24 {
25 }
26 };
27
28 #define M_GDIDATA ((wxGDIRefData *)m_refData)
29
30 class WXDLLEXPORT wxGDIObject: public wxObject
31 {
32 DECLARE_DYNAMIC_CLASS(wxGDIObject)
33 public:
34 wxGDIObject() : m_visible(FALSE) { }
35 ~wxGDIObject() { }
36
37 bool IsNull() const { return (m_refData == 0); }
38
39 virtual bool GetVisible() { return m_visible; }
40 virtual void SetVisible(bool v) { m_visible = v; }
41
42 protected:
43 bool m_visible; // Can a pointer to this object be safely taken?
44 // - only if created within FindOrCreate...
45 };
46
47 #endif
48 // _WX_GDIOBJ_H_