]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/wince/gdiobj.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/gdiobj.h
3 // Purpose: wxGDIObject class: base class for other GDI classes
4 // Author: Marco Cavallini
8 // Copyright: (c) KOAN SAS ( www.koansoftware.com )
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #include "wx/object.h" // base class
18 // ----------------------------------------------------------------------------
19 // wxGDIRefData is the base class for wxXXXData structures which contain the
20 // real data for the GDI object and are shared among all wxWin objects sharing
21 // the same native GDI object
22 // ----------------------------------------------------------------------------
24 class WXDLLEXPORT wxGDIRefData
: public wxObjectRefData
26 // this class is intentionally left blank
29 // ----------------------------------------------------------------------------
31 // ----------------------------------------------------------------------------
33 class WXDLLEXPORT wxGDIObject
: public wxObject
36 wxGDIObject() { m_visible
= FALSE
; };
38 // Creates the resource
39 virtual bool RealizeResource() { return FALSE
; };
42 virtual bool FreeResource(bool WXUNUSED(force
) = FALSE
) { return FALSE
; }
44 virtual bool IsFree() const { return FALSE
; }
46 bool IsNull() const { return (m_refData
== 0); }
49 // virtual WXHANDLE GetResourceHandle() { return 0; }
50 WXHANDLE
GetResourceHandle() { return 0; }
52 virtual bool GetVisible() { return m_visible
; }
53 virtual void SetVisible(bool v
) { m_visible
= v
; }
56 bool m_visible
; // TRUE only if we should delete this object ourselves
59 DECLARE_DYNAMIC_CLASS(wxGDIObject
)