]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/gdiobj.h
added inactive titlebar text colour
[wxWidgets.git] / include / wx / msw / gdiobj.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////////
6d167489 2// Name: wx/msw/gdiobj.h
2bda0e17
KB
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$
bbcdf8bc 8// Copyright: (c) Julian Smart
6d167489 9// Licence: wxWindows licence
2bda0e17
KB
10/////////////////////////////////////////////////////////////////////////////
11
bbcdf8bc
JS
12#ifndef _WX_GDIOBJ_H_
13#define _WX_GDIOBJ_H_
2bda0e17 14
2bda0e17 15#ifdef __GNUG__
6d167489 16 #pragma interface "gdiobj.h"
2bda0e17
KB
17#endif
18
6d167489 19#include "wx/object.h" // base class
2bda0e17 20
6d167489
VZ
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
2bda0e17
KB
30};
31
6d167489
VZ
32// ----------------------------------------------------------------------------
33// wxGDIObject
34// ----------------------------------------------------------------------------
2bda0e17 35
6d167489 36class WXDLLEXPORT wxGDIObject : public wxObject
2bda0e17 37{
6d167489
VZ
38public:
39 wxGDIObject() { m_visible = FALSE; };
2bda0e17 40
6d167489
VZ
41 // Creates the resource
42 virtual bool RealizeResource() { return FALSE; };
2bda0e17 43
6d167489
VZ
44 // Frees the resource
45 virtual bool FreeResource(bool WXUNUSED(force) = FALSE) { return FALSE; }
2bda0e17 46
6d167489 47 virtual bool IsFree() const { return FALSE; }
2bda0e17 48
6d167489 49 bool IsNull() const { return (m_refData == 0); }
2bda0e17 50
6d167489
VZ
51 // Returns handle.
52 virtual WXHANDLE GetResourceHandle() { return 0; }
2bda0e17 53
6d167489
VZ
54 virtual bool GetVisible() { return m_visible; }
55 virtual void SetVisible(bool v) { m_visible = v; }
2bda0e17
KB
56
57protected:
6d167489
VZ
58 bool m_visible; // TRUE only if we should delete this object ourselves
59
60private:
61 DECLARE_DYNAMIC_CLASS(wxGDIObject)
2bda0e17
KB
62};
63
64#endif
bbcdf8bc 65 // _WX_GDIOBJ_H_