1998-08-07 21:32:13 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: gdiobj.h
|
1998-08-12 09:16:21 +00:00
|
|
|
// Purpose: wxGDIObject class: base class for other GDI classes
|
|
|
|
// Author: AUTHOR
|
|
|
|
// Modified by:
|
|
|
|
// Created: ??/??/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) AUTHOR
|
1998-08-07 21:32:13 +00:00
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-12 09:16:21 +00:00
|
|
|
#ifndef _WX_GDIOBJ_H_
|
|
|
|
#define _WX_GDIOBJ_H_
|
1998-08-07 21:32:13 +00:00
|
|
|
|
|
|
|
#include "wx/object.h"
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
1998-08-12 09:16:21 +00:00
|
|
|
#pragma interface "gdiobj.h"
|
1998-08-07 21:32:13 +00:00
|
|
|
#endif
|
|
|
|
|
1998-08-12 09:16:21 +00:00
|
|
|
class WXDLLEXPORT wxGDIRefData: public wxObjectRefData {
|
|
|
|
public:
|
|
|
|
inline wxGDIRefData()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#define M_GDIDATA ((wxGDIRefData *)m_refData)
|
|
|
|
|
1998-08-07 21:32:13 +00:00
|
|
|
class WXDLLEXPORT wxGDIObject: public wxObject
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxGDIObject)
|
|
|
|
public:
|
1998-08-12 09:16:21 +00:00
|
|
|
inline wxGDIObject() { m_visible = FALSE; };
|
|
|
|
inline ~wxGDIObject() {};
|
|
|
|
|
|
|
|
inline bool IsNull() const { return (m_refData == 0); }
|
1998-08-07 21:32:13 +00:00
|
|
|
|
1998-08-12 09:16:21 +00:00
|
|
|
virtual bool GetVisible() { return m_visible; }
|
1998-08-07 21:32:13 +00:00
|
|
|
virtual void SetVisible(bool v) { m_visible = v; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
bool m_visible; // Can a pointer to this object be safely taken?
|
|
|
|
// - only if created within FindOrCreate...
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-12 09:16:21 +00:00
|
|
|
// _WX_GDIOBJ_H_
|