]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/gdiobj.h
added support for gcc precompiled headers
[wxWidgets.git] / include / wx / mac / gdiobj.h
CommitLineData
0dbd6262
SC
1/////////////////////////////////////////////////////////////////////////////
2// Name: gdiobj.h
3// Purpose: wxGDIObject class: base class for other GDI classes
a31a5f85 4// Author: Stefan Csomor
0dbd6262 5// Modified by:
a31a5f85 6// Created: 1998-01-01
0dbd6262 7// RCS-ID: $Id$
a31a5f85 8// Copyright: (c) Stefan Csomor
e40298d5 9// Licence: wxWindows licence
0dbd6262
SC
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GDIOBJ_H_
13#define _WX_GDIOBJ_H_
14
af49c4b8 15#if defined(__GNUG__) && !defined(__APPLE__)
0dbd6262
SC
16#pragma interface "gdiobj.h"
17#endif
18
af49c4b8
GD
19#include "wx/object.h"
20
0dbd6262
SC
21class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
22public:
23 inline wxGDIRefData()
e40298d5
JS
24 {
25 }
0dbd6262
SC
26};
27
28#define M_GDIDATA ((wxGDIRefData *)m_refData)
29
30class WXDLLEXPORT wxGDIObject: public wxObject
31{
32DECLARE_DYNAMIC_CLASS(wxGDIObject)
33 public:
7ee31b00
GD
34 wxGDIObject() : m_visible(FALSE) { }
35 ~wxGDIObject() { }
0dbd6262 36
7ee31b00 37 bool IsNull() const { return (m_refData == 0); }
0dbd6262
SC
38
39 virtual bool GetVisible() { return m_visible; }
40 virtual void SetVisible(bool v) { m_visible = v; }
41
42protected:
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_