]> git.saurik.com Git - wxWidgets.git/blame - include/wx/qt/gdiobj.h
synched Clear() and SetBackgroundColour()
[wxWidgets.git] / include / wx / qt / gdiobj.h
CommitLineData
7c78e7c7
RR
1/////////////////////////////////////////////////////////////////////////////
2// Name: gdiobj.h
01b2eeec
KB
3// Purpose: wxGDIObject class: base class for other GDI classes
4// Author: AUTHOR
5// Modified by:
6// Created: ??/??/98
7// RCS-ID: $Id$
8// Copyright: (c) AUTHOR
7c78e7c7
RR
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
01b2eeec
KB
12#ifndef _WX_GDIOBJ_H_
13#define _WX_GDIOBJ_H_
7c78e7c7
RR
14
15#include "wx/object.h"
16
17#ifdef __GNUG__
01b2eeec 18#pragma interface "gdiobj.h"
7c78e7c7
RR
19#endif
20
01b2eeec
KB
21class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
22public:
23 inline wxGDIRefData()
24 {
25 }
26};
27
28#define M_GDIDATA ((wxGDIRefData *)m_refData)
29
7c78e7c7
RR
30class WXDLLEXPORT wxGDIObject: public wxObject
31{
32DECLARE_DYNAMIC_CLASS(wxGDIObject)
33 public:
01b2eeec
KB
34 inline wxGDIObject() { m_visible = FALSE; };
35 inline ~wxGDIObject() {};
36
37 inline bool IsNull() const { return (m_refData == 0); }
7c78e7c7 38
01b2eeec 39 virtual bool GetVisible() { return m_visible; }
7c78e7c7
RR
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
01b2eeec 48 // _WX_GDIOBJ_H_