/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/gdiobj.h
ViewVC logotype

Contents of /branch/r3113_0.9.7_beta/3rdparty/wxWidgets/include/wx/gdiobj.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 32 - (show annotations) (download)
Tue Sep 7 03:29:01 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 1714 byte(s)
branching from upstream revision (http://pcsx2.googlecode.com/svn/trunk
): r3113 to
https://svn.netsolutions.dnsalias.com/websvn/ps2/pcsx2/pcsx2_0.9.7/branch/r3113_0.9.7_beta
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: gdiobj.h 42211 2006-10-21 17:19:11Z SN $
9 // Licence: wxWindows Licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_GDIOBJ_H_BASE_
13 #define _WX_GDIOBJ_H_BASE_
14
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
23 class WXDLLIMPEXP_CORE wxGDIRefData: public wxObjectRefData { };
24
25 // ----------------------------------------------------------------------------
26 // wxGDIObject
27 // ----------------------------------------------------------------------------
28
29 class WXDLLIMPEXP_CORE wxGDIObject: public wxObject
30 {
31 public:
32 bool IsNull() const { return m_refData == NULL; }
33
34 #if defined(__WXMSW__) || defined(__WXPM__) || defined(__WXPALMOS__)
35 // Creates the resource
36 virtual bool RealizeResource() { return false; }
37
38 // Frees the resource
39 virtual bool FreeResource(bool WXUNUSED(force) = false) { return false; }
40
41 virtual bool IsFree() const { return false; }
42
43 // Returns handle.
44 virtual WXHANDLE GetResourceHandle() const { return 0; }
45 #endif // defined(__WXMSW__) || defined(__WXPM__)
46
47 DECLARE_DYNAMIC_CLASS(wxGDIObject)
48 };
49
50 #endif
51 // _WX_GDIOBJ_H_BASE_

  ViewVC Help
Powered by ViewVC 1.1.22