1998-05-20 14:01:55 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gdiobj.h
|
|
|
|
// Purpose:
|
|
|
|
// Author: Robert Roebling
|
1998-10-29 18:03:18 +00:00
|
|
|
// Id: $Id$
|
|
|
|
// Copyright: (c) 1998 Robert Roebling, Julian Smart
|
1998-05-20 14:01:55 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __GDIOBJH__
|
|
|
|
#define __GDIOBJH__
|
|
|
|
|
|
|
|
#include "wx/object.h"
|
|
|
|
|
2002-09-07 12:28:46 +00:00
|
|
|
#if defined(__GNUG__) && !defined(__APPLE__)
|
1998-05-20 14:01:55 +00:00
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
1999-01-24 15:07:54 +00:00
|
|
|
class wxGDIObject : public wxObject
|
1998-05-20 14:01:55 +00:00
|
|
|
{
|
1999-01-24 15:07:54 +00:00
|
|
|
public:
|
1999-11-22 19:44:25 +00:00
|
|
|
inline wxGDIObject() { m_visible = FALSE; };
|
|
|
|
inline ~wxGDIObject() {}
|
1999-01-24 15:07:54 +00:00
|
|
|
|
1999-11-22 19:44:25 +00:00
|
|
|
virtual bool GetVisible() { return m_visible; }
|
|
|
|
virtual void SetVisible( bool visible ) { m_visible = visible; }
|
1998-05-20 14:01:55 +00:00
|
|
|
|
2000-03-04 16:23:26 +00:00
|
|
|
bool IsNull() const { return (m_refData == 0); }
|
|
|
|
|
1998-05-20 14:01:55 +00:00
|
|
|
protected:
|
1999-11-22 19:44:25 +00: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 14:01:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// __GDIOBJH__
|