//----------------------------------------------------------------------------
// wxTimerEvent
// extracted from timer.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_TIMEREVENT_H__
#define __OBJECT_WX_TIMEREVENT_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxTimerEvent
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_TimerEvent);

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

}}

#endif
