1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gdiobj.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 13:03:18 -05:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:01:55 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __GDIOBJH__
|
|
|
|
#define __GDIOBJH__
|
|
|
|
|
|
|
|
#include "wx/object.h"
|
|
|
|
|
2005-08-02 18:58:06 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxGDIObject : public wxObject
|
1998-05-20 10:01:55 -04:00
|
|
|
{
|
1999-01-24 10:07:54 -05:00
|
|
|
public:
|
1999-11-22 14:44:25 -05:00
|
|
|
inline wxGDIObject() { m_visible = FALSE; };
|
|
|
|
inline ~wxGDIObject() {}
|
1999-01-24 10:07:54 -05:00
|
|
|
|
1999-11-22 14:44:25 -05:00
|
|
|
virtual bool GetVisible() { return m_visible; }
|
|
|
|
virtual void SetVisible( bool visible ) { m_visible = visible; }
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2000-03-04 11:23:26 -05:00
|
|
|
bool IsNull() const { return (m_refData == 0); }
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
protected:
|
1999-11-22 14:44:25 -05:00
|
|
|
bool m_visible; /* can a pointer to this object be safely taken?
|
|
|
|
* - only if created within FindOrCreate... */
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGDIObject)
|
1998-05-20 10:01:55 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// __GDIOBJH__
|