GUI_Private.h
上传用户:zbk8730
上传日期:2017-08-10
资源大小:12168k
文件大小:4k
源码类别:

uCOS

开发平台:

C/C++

  1. /*
  2. *********************************************************************************************************
  3. *                                                uC/GUI
  4. *                        Universal graphic software for embedded applications
  5. *
  6. *                       (c) Copyright 2002, Micrium Inc., Weston, FL
  7. *                       (c) Copyright 2002, SEGGER Microcontroller Systeme GmbH
  8. *
  9. *              礐/GUI is protected by international copyright laws. Knowledge of the
  10. *              source code may not be used to write a similar product. This file may
  11. *              only be used in accordance with a license and should not be redistributed
  12. *              in any way. We appreciate your understanding and fairness.
  13. *
  14. ----------------------------------------------------------------------
  15. File        : GUI_Private.h
  16. Purpose     : GUI internal declarations
  17. ---------------------------END-OF-HEADER------------------------------
  18. Attention : Do not modify this file ! If you do, you will not
  19.             be able do update to a later version of emWin !
  20. */
  21. #ifndef  GUI_PRIVATE_H
  22. #define  GUI_PRIVATE_H
  23. #include "GUI_Protected.h"
  24. #include "LCD_Private.h"   /* Required because of LCD_PIXELINDEX, which depends on LCDConf */
  25. #if GUI_SUPPORT_MEMDEV
  26.   #define LCDDEV_L0_Color2Index         GUI_Context.pDeviceAPI->pfColor2Index
  27.   #define LCDDEV_L0_DrawBitmap          GUI_Context.pDeviceAPI->pfDrawBitmap
  28.   #define LCDDEV_L0_DrawHLine           GUI_Context.pDeviceAPI->pfDrawHLine
  29.   #define LCDDEV_L0_DrawVLine           GUI_Context.pDeviceAPI->pfDrawVLine
  30.   #define LCDDEV_L0_DrawPixel           GUI_Context.pDeviceAPI->pfDrawPixel
  31.   #define LCDDEV_L0_FillRect            GUI_Context.pDeviceAPI->pfFillRect
  32.   #define LCDDEV_L0_GetPixel            GUI_Context.pDeviceAPI->pfGetPixel
  33.   #define LCDDEV_L0_GetRect             GUI_Context.pDeviceAPI->pfGetRect
  34.   #define LCDDEV_L0_GetPixelIndex       GUI_Context.pDeviceAPI->pfGetPixelIndex
  35.   #define LCDDEV_L0_Index2Color         GUI_Context.pDeviceAPI->pfIndex2Color
  36.   #define LCDDEV_L0_SetPixelIndex       GUI_Context.pDeviceAPI->pfSetPixelIndex
  37.   #define LCDDEV_L0_XorPixel            GUI_Context.pDeviceAPI->pfXorPixel
  38. #else
  39.   #define LCDDEV_L0_Color2Index         LCD_L0_Color2Index
  40.   #define LCDDEV_L0_DrawBitmap          LCD_L0_DrawBitmap
  41.   #define LCDDEV_L0_DrawHLine           LCD_L0_DrawHLine
  42.   #define LCDDEV_L0_DrawVLine           LCD_L0_DrawVLine
  43.   #define LCDDEV_L0_DrawPixel           LCD_L0_DrawPixel
  44.   #define LCDDEV_L0_FillRect            LCD_L0_FillRect
  45.   #define LCDDEV_L0_GetPixel            LCD_L0_GetPixel
  46.   #define LCDDEV_L0_GetRect             LCD_L0_GetRect
  47.   #define LCDDEV_L0_GetPixelIndex       LCD_L0_GetPixelIndex
  48.   #define LCDDEV_L0_Index2Color         LCD_L0_Index2Color
  49.   #define LCDDEV_L0_SetPixelIndex       LCD_L0_SetPixelIndex
  50.   #define LCDDEV_L0_XorPixel            LCD_L0_XorPixel
  51. #endif
  52. #if !defined (__C51__) /* To bypass Keil-compiler bug */
  53.   tLCDDEV_DrawBitmap LCD_L0_DrawBitmap, LCD_L0_1_DrawBitmap, LCD_L0_MAG_DrawBitmap;
  54. #else
  55.   void LCD_L0_DrawBitmap    (int x0, int y0, int xsize, int ysize, 
  56.                              int BitsPerPixel, int BytesPerLine, 
  57.                              const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
  58.   void LCD_L0_1_DrawBitmap  (int x0, int y0, int xsize, int ysize, 
  59.                              int BitsPerPixel, int BytesPerLine, 
  60.                              const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
  61.   void LCD_L0_MAG_DrawBitmap(int x0, int y0, int xsize, int ysize, 
  62.                              int BitsPerPixel, int BytesPerLine, 
  63.                              const U8* pData, int Diff, const LCD_PIXELINDEX* pTrans);
  64. #endif
  65. LCD_PIXELINDEX*  LCD_GetpPalConvTable(const LCD_LOGPALETTE*  pLogPal);
  66. LCD_PIXELINDEX*  LCD_GetpPalConvTableUncached(const LCD_LOGPALETTE*  pLogPal);
  67. LCD_PIXELINDEX*  GUI_MEMDEV_XY2PTR(int x,int y);
  68. #endif   /* ifdef GUI_H */