]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/gdiobj.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     wxGDIObject class: base class for other GDI classes 
   4 // Author:      David Webster 
   8 // Copyright:   (c) David Webster 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  15 #include "wx/object.h" 
  17 class WXDLLEXPORT wxGDIRefData
: public wxObjectRefData
 
  24 #define M_GDIDATA ((wxGDIRefData *)m_refData) 
  26 class WXDLLEXPORT wxGDIObject
: public wxObject
 
  28 DECLARE_DYNAMIC_CLASS(wxGDIObject
) 
  30   inline wxGDIObject() { m_visible 
= FALSE
; }; 
  31   inline ~wxGDIObject() {}; 
  33   // Creates the resource 
  34   virtual bool RealizeResource(void) { return FALSE
; }; 
  37   virtual bool FreeResource(bool WXUNUSED(force
) = FALSE
) { return FALSE
; }; 
  39   virtual bool IsFree(void) const { return FALSE
; }; 
  41   inline bool IsNull() const { return (m_refData 
== 0); } 
  43   virtual bool GetVisible() { return m_visible
; } 
  44   virtual void SetVisible(bool v
) { m_visible 
= v
; } 
  47   bool m_visible
; // Can a pointer to this object be safely taken? 
  48                  // - only if created within FindOrCreate...