//----------------------------------------------------------------------------
// wxWindowDC
// extracted from windowdc.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_WINDOWDC_H__
#define __OBJECT_WX_WINDOWDC_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxWindowDC
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_WindowDC);

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

}}

#endif
