]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/mgl/gdiobj.h
Added a resource for Smartphone menubar
[wxWidgets.git] / include / wx / mgl / gdiobj.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/msw/gdiobj.h
3// Purpose: wxGDIObject class: base class for other GDI classes
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_GDIOBJ_H_
13#define _WX_GDIOBJ_H_
14
15#ifdef __GNUG__
16 #pragma interface "gdiobj.h"
17#endif
18
19#include "wx/object.h" // base class
20
21// ----------------------------------------------------------------------------
22// wxGDIRefData is the base class for wxXXXData structures which contain the
23// real data for the GDI object and are shared among all wxWin objects sharing
24// the same native GDI object
25// ----------------------------------------------------------------------------
26
27class WXDLLEXPORT wxGDIRefData : public wxObjectRefData
28{
29 // this class is intentionally left blank
30};
31
32// ----------------------------------------------------------------------------
33// wxGDIObject
34// ----------------------------------------------------------------------------
35
36class WXDLLEXPORT wxGDIObject : public wxObject
37{
38public:
39 wxGDIObject() { m_visible = FALSE; }
40
41 virtual bool GetVisible() { return m_visible; }
42 virtual void SetVisible( bool visible ) { m_visible = visible; }
43
44 bool IsNull() const { return (m_refData == 0); }
45
46protected:
47 bool m_visible; /* can a pointer to this object be safely taken?
48 * - only if created within FindOrCreate... */
49
50private:
51 DECLARE_DYNAMIC_CLASS(wxGDIObject)
52};
53
54#endif // _WX_GDIOBJ_H_