view LightClone/Source/ActionSlot.h @ 67:8e7ebab350e7

Clean up memory leaks
author koryspansel
date Fri, 07 Oct 2011 01:15:28 -0700
parents f7095bce01cf
children
line wrap: on
line source

/*
 * ActionSlot
 */

#ifndef __ACTIONSLOT_H__
#define __ACTIONSLOT_H__

#include "Core.h"
#include "GuiImage.h"

/*
 * ActionSlot
 */
class ActionSlot : public GuiImage
{
	/*
	 * nSlot
	 */
	uint32 nSlot;

	/*
	 * nAction
	 */
	uint32 nAction;

	/*
	 * bPermanent
	 */
	bool bPermanent;

public:

	/*
	 * ActionSlot
	 */
	ActionSlot();

	/*
	 * Initialize
	 */
	virtual ErrorCode Initialize(ServiceProvider* pServiceProvider);

	/*
	 * SetSlot
	 */
	void SetSlot(uint32 nSlot);

	/*
	 * GetSlot
	 */
	uint32 GetSlot() const;

	/*
	 * SetAction
	 */
	void SetAction(uint32 nAction);

	/*
	 * GetAction
	 */
	uint32 GetAction() const;

	/*
	 * SetPermanent
	 */
	void SetPermanent(bool bPermanent);

protected:

	/*
	 * OnMouseDown
	 */
	virtual void OnMouseDown(uint32 nButton, float fX, float fY);

	/*
	 * OnMouseUp
	 */
	virtual void OnMouseUp(uint32 nButton, float fX, float fY);

	/*
	 * OnMouseMove
	 */
	virtual void OnMouseMove(float fX, float fY);

	/*
	 * OnDrop
	 */
	virtual void OnDrop(GuiElement* pSource, float fX, float fY);
};

#endif //__ACTIONSLOT_H__