//----------------------------------------------------------------------------
// wxFont
// extracted from font.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_FONT_H__
#define __OBJECT_WX_FONT_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxFont
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_Font);

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

}}

#endif
