]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gdiobj.h
removed SetVirtualSizeHints() and related code
[wxWidgets.git] / include / wx / gdiobj.h
CommitLineData
99d80019
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/gdiobj.h
3// Purpose: wxGDIObject base header
4// Author: Julian Smart
5// Modified by:
6// Created:
7// Copyright: (c) Julian Smart
8// RCS-ID: $Id$
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_GDIOBJ_H_BASE_
13#define _WX_GDIOBJ_H_BASE_
c801d85f 14
1de8d512
VZ
15#include "wx/object.h"
16
17// ----------------------------------------------------------------------------
18// wxGDIRefData is the base class for wxXXXData structures which contain the
19// real data for the GDI object and are shared among all wxWin objects sharing
20// the same native GDI object
21// ----------------------------------------------------------------------------
22
b5dbe15d 23class WXDLLIMPEXP_FWD_CORE wxGDIRefData: public wxObjectRefData { };
1de8d512
VZ
24
25// ----------------------------------------------------------------------------
26// wxGDIObject
27// ----------------------------------------------------------------------------
28
29class WXDLLIMPEXP_CORE wxGDIObject: public wxObject
30{
31public:
32 bool IsNull() const { return m_refData == NULL; }
33
43cf637f
SC
34 // older version, for backwards compat
35 bool Ok() const { return IsOk(); }
36
37 virtual bool IsOk() const { return (m_refData != NULL) ; }
38
d9c9196e 39#if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
1de8d512
VZ
40 // Creates the resource
41 virtual bool RealizeResource() { return false; }
42
43 // Frees the resource
44 virtual bool FreeResource(bool WXUNUSED(force) = false) { return false; }
45
46 virtual bool IsFree() const { return false; }
47
48 // Returns handle.
49 virtual WXHANDLE GetResourceHandle() const { return 0; }
d9c9196e 50#endif // defined(__WXMSW__) || defined(__WXPM__)
1de8d512
VZ
51
52 DECLARE_DYNAMIC_CLASS(wxGDIObject)
53};
c801d85f
KB
54
55#endif
34138703 56 // _WX_GDIOBJ_H_BASE_