#pragma once

#include "dllinterface.h"
#include "image.h"

//-----------------------------------------------------------------------------
//Name: Panel
//Desc:	its an advanced picture, it has a ceartain border where other objects 
//		gets clipped, you can also determine a fixed border of the texture, the
//		rest would be stretched
//-----------------------------------------------------------------------------

class GAMEGUI_API Panel : public Image
{
	//inner border where other objects gets clipped, interpretation depending on
	//boolean absoulte member of this element
	//float	m_Border;
	//determines the border that fixed border of the texture
	//float	m_TextureBorder;

	int		m_FixedBorder;

protected:

	virtual ~Panel(void);

public:

	Panel(MenuManager*manager,DWORD id);

	//void SetBorder(float border, float texborder){m_Border=border;m_TextureBorder=texborder;}
	void SetFixedBorder(const int fixedborder) { m_FixedBorder = fixedborder; } //number of pixels on border that will be 1:1, the center part is stretched
	int GetFixedBorder(void) const { return m_FixedBorder; }

	void OnDraw(void);
};
