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