//----------------------------------------------------------------------------
// wxScrollEvent
// extracted from scrolevt.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_SCROLLEVENT_H__
#define __OBJECT_WX_SCROLLEVENT_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxScrollEvent
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_ScrollEvent);

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

}}

#endif
