/*********************************************************************************
* File Name		: TFT_GraphicFunctions.h
* Created		: 20.2.2016 16:40:00
* Autor			: Frantisek Pospisil
* Description	: Graficke funkce na TFT displeji, vyuziva knihovnu TFT_SSD1963.c
*********************************************************************************/

/* definice barev */
#define		ColBlack		0x0000		// cerna
#define		ColNavy			0x000F		// namorni modra
#define		ColBlue			0x001F		// modra
#define		ColDarkBlue		0x01CF		// tmave modra
#define		ColDarkGreen	0x03E0		// tmave zelena
#define		ColDarkCyan		0x03EF		// tmave azurova
#define		ColGreen		0x07E0		// zelena
#define		ColCyan			0x07FF		// azurova
#define		ColGrayBlue		0x5458		// seda modra
#define		ColMaroon		0x7800		// hnedocervena
#define		ColPurple		0x780F		// nachova
#define		ColOlive		0x7BEF		// olivova
#define		ColLightBlue	0x7D7C		// svetle modra
#define		ColPorpo		0x801F		//
#define		ColDarkGrey		0x8410		// tmave seda
#define		ColGrey			0x8430		// seda
#define		ColLGreyGreen	0xA651		// svetle sedozelena
#define		ColLightGrey	0xC618		// svetle seda
#define		ColRed			0xF800		// cervena
#define		ColMagneta		0xF81F		// purpurova
#define		ColOrange		0xFC08		// oranz
#define		ColYellow		0xFFE0		// zluta
#define		ColWhite		0xFFFF		// bila

/* uplne funkcni prototypy */
/*********************************************************************************
*
* Function Name : TFT_DrawCircle
* Description	: nakresli kruh, souradnice x, y, radius, color
*
*********************************************************************************/
void TFT_DrawCircle( unsigned int x, unsigned int y, unsigned int radius,
unsigned int color );

/*********************************************************************************
*
* Function Name : TFT_DrawBox
* Description	: nakresli obdelnik, souradnice x1, y1, x2, y2, color
*
*********************************************************************************/
void TFT_DrawBox( unsigned int x1, unsigned int y1, unsigned int x2,
unsigned int y2, unsigned int color );

/*********************************************************************************
*
* Function Name : TFT_DrawLine
* Description	: nakresli caru, souradnice x1, y1, x2, y2, color
*
*********************************************************************************/
void TFT_DrawLine( unsigned int x1, unsigned int y1, unsigned int x2,
unsigned int y2, unsigned int color );

/*********************************************************************************
*
* Function Name : TFT_DrawPoint
* Description	: nakresli bod, souradnice x, y, color
*
*********************************************************************************/
void TFT_DrawPoint(unsigned int x, unsigned int y, unsigned int color);

/*********************************************************************************
*
* Function Name : TFT_DrawBigPoint
* Description	: nakresli bod, souradnice x, y, color
*
*********************************************************************************/
void TFT_DrawBigPoint(unsigned int x, unsigned int y, unsigned int color);

/*********************************************************************************
*
* Function Name : TFT_WindowSet
* Description	: nastavi prostor pro praci
*
*********************************************************************************/
void TFT_WindowSet(unsigned int StartX, unsigned int EndX, unsigned int StartY, unsigned int EndY);

/*********************************************************************************
*
* Function Name : TFT_WindowFull
* Description	: vyplni displej barvou
*
*********************************************************************************/
void TFT_WindowFull(unsigned int color);

/*********************************************************************************
*
* Function Name : TFT_ColorBox
* Description	: vyplni obdelnik barvou
*
*********************************************************************************/
void TFT_ColorBox(unsigned int StartX, unsigned int EndX, unsigned int StartY, unsigned int EndY, unsigned int color);
