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

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        : GUIType.H
  16. Purpose     : Include file define the types used for GUI
  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  GUITYPE_H_INCLUDED
  22. #define  GUITYPE_H_INCLUDED
  23. #include "LCD.H"
  24. /*      *************************************************************
  25.         *                                                           *
  26.         *                Simple types                               *
  27.         *                                                           *
  28.         *************************************************************
  29. */
  30. typedef const char *  GUI_ConstString;
  31. typedef GUI_ConstString GUI_aConstString[];
  32. /*      *************************************************************
  33.         *                                                           *
  34.         *                Structures                                 *
  35.         *                                                           *
  36.         *************************************************************
  37. */
  38. typedef LCD_COLOR       GUI_COLOR;
  39. typedef LCD_LOGPALETTE  GUI_LOGPALETTE;
  40. typedef LCD_DRAWMODE    GUI_DRAWMODE;
  41. typedef LCD_RECT        GUI_RECT;
  42. typedef struct {
  43.   U16P XSize;
  44.   U16P YSize;
  45.   U16P BytesPerLine;
  46.   U16P BitsPerPixel;
  47.   const U8* pData;
  48.   const GUI_LOGPALETTE* pPal;
  49.   tfDrawSpecialBitmap* pfDraw;
  50. } GUI_BITMAP;
  51. /* This structure may not be changed because the data that it
  52.    expects is read in binary form (via any kind of interface,
  53.    at runtime).
  54.    This structure should therefor not be changed.
  55. */
  56. typedef struct {
  57.   U16 ID;           /* Version 1.00 => 100*/
  58.   U16 Version;
  59.   U16 XSize;
  60.   U16 YSize;
  61.   U16 BytesPerLine;
  62.   U16 BitsPerPixel;
  63.   U16 NumColors;
  64.   U16 HasTrans;
  65. } GUI_BITMAP_STREAM;
  66. /*
  67.       ****************************************
  68.       *                                      *
  69.       *      FONT structures (new in V1.10)  *
  70.       *                                      *
  71.       ****************************************
  72. */
  73. /* Translation list. Translates a character code into up to 2
  74.    indices of images to display on top of each other;
  75.    '