//----------------------------------------------------------------------------
// wxPalette
// extracted from palette.tex
//----------------------------------------------------------------------------
#ifndef __OBJECT_WX_PALETTE_H__
#define __OBJECT_WX_PALETTE_H__

Gura_BeginModule(wx)

//----------------------------------------------------------------------------
// Class declaration for wxPalette
//----------------------------------------------------------------------------
Gura_DeclareUserClass(wx_Palette);

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

}}

#endif
