//----------------------------------------------------------------------------
// wxPanel
// extracted from panel.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_PANEL_H__
#define __OBJECT_WX_PANEL_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxPanel
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_Panel);

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

}}

#endif
