gui_private.h

来自「uCGUI」· C头文件 代码 · 共 61 行

H
61
字号
/*************************************************************************************************************
                                                   uC/GUI
                                               嵌入式通用图形软件
文    件: GUI_Private.h
描    述: GUI internal declarations
Attention : 不要修改此文件! 如果你这样做,你将无法更新到版本emWin !
*************************************************************************************************************/
#ifndef  GUI_PRIVATE_H
	#define  GUI_PRIVATE_H
	
	#include "GUI_Protected.h"
	#include "LCD_Private.h"   /* Required because of LCD_PIXELINDEX, which depends on LCDConf */
	
	#if GUI_SUPPORT_MEMDEV
	  #define LCDDEV_L0_Color2Index         GUI_Context.pDeviceAPI->pfColor2Index
	  #define LCDDEV_L0_DrawBitmap          GUI_Context.pDeviceAPI->pfDrawBitmap
	  #define LCDDEV_L0_DrawHLine           GUI_Context.pDeviceAPI->pfDrawHLine
	  #define LCDDEV_L0_DrawVLine           GUI_Context.pDeviceAPI->pfDrawVLine
	  #define LCDDEV_L0_DrawPixel           GUI_Context.pDeviceAPI->pfDrawPixel
	  #define LCDDEV_L0_FillRect            GUI_Context.pDeviceAPI->pfFillRect
	  #define LCDDEV_L0_GetPixel            GUI_Context.pDeviceAPI->pfGetPixel
	  #define LCDDEV_L0_GetRect             GUI_Context.pDeviceAPI->pfGetRect
	  #define LCDDEV_L0_GetPixelIndex       GUI_Context.pDeviceAPI->pfGetPixelIndex
	  #define LCDDEV_L0_Index2Color         GUI_Context.pDeviceAPI->pfIndex2Color
	  #define LCDDEV_L0_SetPixelIndex       GUI_Context.pDeviceAPI->pfSetPixelIndex
	  #define LCDDEV_L0_XorPixel            GUI_Context.pDeviceAPI->pfXorPixel
	#else
	  #define LCDDEV_L0_Color2Index         LCD_L0_Color2Index
	  #define LCDDEV_L0_DrawBitmap          LCD_L0_DrawBitmap
	  #define LCDDEV_L0_DrawHLine           LCD_L0_DrawHLine
	  #define LCDDEV_L0_DrawVLine           LCD_L0_DrawVLine
	  #define LCDDEV_L0_DrawPixel           LCD_L0_DrawPixel
	  #define LCDDEV_L0_FillRect            LCD_L0_FillRect
	  #define LCDDEV_L0_GetPixel            LCD_L0_GetPixel
	  #define LCDDEV_L0_GetRect             LCD_L0_GetRect
	  #define LCDDEV_L0_GetPixelIndex       LCD_L0_GetPixelIndex
	  #define LCDDEV_L0_Index2Color         LCD_L0_Index2Color
	  #define LCDDEV_L0_SetPixelIndex       LCD_L0_SetPixelIndex
	  #define LCDDEV_L0_XorPixel            LCD_L0_XorPixel
	#endif
	
	#if !defined (__C51__) /* To bypass Keil-compiler bug */
	  tLCDDEV_DrawBitmap LCD_L0_DrawBitmap, LCD_L0_1_DrawBitmap, LCD_L0_MAG_DrawBitmap;
	#else
	  void LCD_L0_DrawBitmap    (int x0, int y0, int xsize, int ysize, 
	                             int BitsPerPixel, int BytesPerLine, 
	                             const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
	  void LCD_L0_1_DrawBitmap  (int x0, int y0, int xsize, int ysize, 
	                             int BitsPerPixel, int BytesPerLine, 
	                             const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
	  void LCD_L0_MAG_DrawBitmap(int x0, int y0, int xsize, int ysize, 
	                             int BitsPerPixel, int BytesPerLine, 
	                             const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
	#endif
	
	LCD_PIXELINDEX*  LCD_GetpPalConvTable(const LCD_LOGPALETTE*  pLogPal);
	LCD_PIXELINDEX*  LCD_GetpPalConvTableUncached(const LCD_LOGPALETTE*  pLogPal);
	LCD_PIXELINDEX*  GUI_MEMDEV_XY2PTR(int x,int y);
	
#endif   /* ifdef GUI_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?