//----------------------------------------------------------------------------
// wxBufferedDC
// extracted from bufferdc.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_BUFFEREDDC_H__
#define __OBJECT_WX_BUFFEREDDC_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxBufferedDC
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_BufferedDC);

//----------------------------------------------------------------------------
// Object declaration for wxBufferedDC
//----------------------------------------------------------------------------
class Object_wx_BufferedDC : public Object_wx_MemoryDC {
public:
	Gura_DeclareObjectAccessor(wx_BufferedDC)
public:
	inline Object_wx_BufferedDC(wxBufferedDC *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_MemoryDC(Gura_UserClass(wx_BufferedDC), pEntity, pObserver, ownerFlag) {}
	inline Object_wx_BufferedDC(Class *pClass, wxBufferedDC *pEntity, GuraObjectObserver *pObserver, bool ownerFlag) :
				Object_wx_MemoryDC(pClass, pEntity, pObserver, ownerFlag) {}
	virtual ~Object_wx_BufferedDC();
	virtual Object *Clone() const;
	virtual String ToString(Signal sig, bool exprFlag);
	inline wxBufferedDC *GetEntity() {
		return dynamic_cast<wxBufferedDC *>(_pEntity);
	}
	inline wxBufferedDC *ReleaseEntity() {
		wxBufferedDC *pEntity = GetEntity();
		InvalidateEntity();
		return pEntity;
	}
	inline bool IsInvalid(Signal sig) const {
		if (_pEntity != NULL) return false;
		SetError_InvalidWxObject(sig, "wxBufferedDC");
		return true;
	}
public:
	static void OnModuleEntry(Environment &env, Signal sig);
};

}}

#endif
