//----------------------------------------------------------------------------
// wxFrame
// extracted from frame.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_FRAME_H__
#define __OBJECT_WX_FRAME_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxFrame
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_Frame);

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

}}

#endif
