⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lcd_private.h

📁 uCGUI
💻 H
字号:
/*************************************************************************************************************
                                                   uC/GUI
                                               嵌入式通用图形软件
文    件: LCD_Private.H
描    述: Internals of the LCD level
************************************************************************************************************/
#ifndef LCD_Private_H
	#define LCD_Private_H
	
	#include "LCD_ConfDefaults.h"            /* Configuration header file */
	#include "LCD_Protected.h"
	
	typedef void tLCDDEV_DrawBitmap(int x0, int y0, int xsize, int ysize,
	                                int BitsPerPixel, int BytesPerLine,
	                                const U8* pData, int Diff,
	                                const LCD_PIXELINDEX* pTrans);
	
	struct tLCDDEV_APIList_struct 
	{
	  tLCDDEV_Color2Index*        pfColor2Index;
	  tLCDDEV_DrawBitmap*         pfDrawBitmap;
	  tLCDDEV_DrawHLine*          pfDrawHLine;
	  tLCDDEV_DrawVLine*          pfDrawVLine;
	  tLCDDEV_FillRect*           pfFillRect;
	  tLCDDEV_GetPixelIndex*      pfGetPixelIndex;
	  tLCDDEV_GetRect*            pfGetRect;
	  tLCDDEV_Index2Color*        pfIndex2Color;
	  tLCDDEV_SetPixelIndex*      pfSetPixelIndex;
	  tLCDDEV_XorPixel*           pfXorPixel;
	  tLCDDEV_FillPolygon*        pfFillPolygon;
	  tLCDDEV_FillPolygonAA*      pfFillPolygonAA;
	};
	
	#if LCD_BITSPERPIXEL <=8
	  #define LCD_BKCOLORINDEX GUI_Context.LCD.aColorIndex8[0]
	  #define LCD_COLORINDEX   GUI_Context.LCD.aColorIndex8[1]
	  #define LCD_ACOLORINDEX  GUI_Context.LCD.aColorIndex8
	#else
	  #define LCD_BKCOLORINDEX GUI_Context.LCD.aColorIndex16[0]
	  #define LCD_COLORINDEX   GUI_Context.LCD.aColorIndex16[1]
	  #define LCD_ACOLORINDEX  GUI_Context.LCD.aColorIndex16
	#endif
	
	#if !defined (__C51__) /* To bypass Keil-compiler bug */
	  extern const struct tLCDDEV_APIList_struct LCD_L0_APIList, LCD_L0_1_APIList;
	#endif
	
/*************************************************************************************************************
                                        Support for Segment/COMLUTs
*************************************************************************************************************/
	#define LCD_TYPE_SEGTRANS U16
	#define LCD_TYPE_COMTRANS U16
	
	#ifdef LCD_LUT_COM
	  #ifdef LCDCOLOR_C
	    LCD_TYPE_COMTRANS LCD__aLine2Com0[LCD_YSIZE] = { LCD_LUT_COM };
	  #else
	    extern LCD_TYPE_COMTRANS LCD__aLine2Com0[LCD_YSIZE];
	  #endif
	#endif
	
	#ifdef LCD_LUT_SEG
	  #ifdef LCDCOLOR_C
	    LCD_TYPE_SEGTRANS LCD__aCol2Seg0[LCD_XSIZE] = { LCD_LUT_SEG };
	  #else
	    extern LCD_TYPE_COMTRANS LCD__aCol2Seg0[LCD_XSIZE];
	  #endif
	#endif

#endif /* Avoid multiple inclusion */




⌨️ 快捷键说明

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