DirectDisplay.h
上传用户:wealth48
上传日期:2022-06-24
资源大小:1701k
文件大小:4k
源码类别:

uCOS

开发平台:

C/C++

  1. #ifndef __DIRECTDISPLAY_H__
  2. #define __DIRECTDISPLAY_H__
  3. #include "../inc/sysconfig.h"
  4. #if USE_MINIGUI==0
  5. #include "figure.h"
  6. #include "display.h"
  7. #if  DIRECT_DISPLAY==1
  8. #define  COLORDEPTH_GRAY             0
  9. //#define COLORDEPTH_256
  10. //#define COLORDEPTH_16
  11. #define SetPixel(pdc, x, y, color)   Direct_SetPixel(pdc, x, y, color) 
  12. #define ClearScreen()                        Direct_ClearScreen()
  13. #define MoveTo( pdc,  x,  y)              Direct_MoveTo( pdc, x,  y)
  14. #define LineTo( pdc,x,  y)                  Direct_LineTo( pdc,x,  y)
  15. #define DrawSBresenham_Line( pdc,  x1,  y1, x2,  y2)                  Direct_DrawSBresenham_Line( pdc,  x1,  y1, x2,  y2)
  16. #define  FillRect(pdc, left,top , right,  bottom,DrawMode, color)   Direct_FillRect(pdc, left,top , right,  bottom,DrawMode, color)
  17. #define  FillRect2( pdc, rect,DrawMode,color)                                Direct_FillRect2( pdc, rect,DrawMode,color)
  18. #define  Circle( pdc,x0,y0, r)                                                           Direct_Circle( pdc,x0,y0, r)
  19. #define  CharactorOut( pdc, x, y, ch, bunicode,  fnt)                      Direct_CharactorOut( pdc, x, y, ch, bunicode,  fnt)
  20. #define  CharactorOutRect( pdc, x, y, prect, ch, bunicode,  fnt)     Direct_CharactorOutRect( pdc, x, y, prect, ch, bunicode,  fnt)
  21. #define  TextOut(pdc, x,  y,  ch,  bunicode,  fnt)                             Direct_TextOut(pdc, x,  y,  ch,  bunicode,  fnt)
  22. #define  DrawRectFrame( pdc, left, top , right,  bottom)                Direct_DrawRectFrame( pdc, left, top , right,  bottom)
  23. #define  DrawRectFrame2(pdc, rect)                                              Direct_DrawRectFrame2(pdc, rect)
  24. #define  Draw3DRect( pdc, left, top, right,bottom,color1,color2)                Direct_Draw3DRect( pdc, left, top, right,bottom,color1,color2)
  25. #define  ArcTo1(pdc,  x1, y1, R)                                                      Direct_ArcTo1(pdc,  x1, y1, R)
  26. #define  ArcTo2(pdc,  x1, y1, R)                                                      Direct_ArcTo2(pdc,  x1, y1, R)
  27. #define  ArcTo(pdc, x1,  y1,  arctype,  R)                                        Direct_ArcTo(pdc, x1,  y1,  arctype,  R)         
  28. #define  ShowBmp( pdc,  filename, x,  y)                                        Direct_ShowBmp( pdc,  filename, x,  y)
  29. void Direct_SetPixel(PDC pdc, int x, int y, COLORREF color);
  30. void Direct_ClearScreen();
  31. void Direct_SetPixelOR(PDC pdc, int x, int y, COLORREF color);
  32. void Direct_SetPixelAND(PDC pdc, int x, int y, COLORREF color);
  33. void Direct_SetPixelXOR(PDC pdc, int x, int y, COLORREF color);
  34. void Direct_MoveTo(PDC pdc, int x, int y);
  35. void Direct_LineTo(PDC pdc, int x, int y);
  36. void Direct_DrawSBresenham_Line(PDC pdc, int x1, int y1,int x2, int y2);
  37. void Direct_FillRect(PDC pdc, int left,int top ,int right, int bottom,U32 DrawMode, U32 color);
  38. void Direct_FillRect2(PDC pdc, structRECT *rect,U32 DrawMode, U32 color);
  39. void Direct_Circle(PDC pdc,int x0,int y0,int r);
  40. void Direct_CharactorOut(PDC pdc, int* x, int* y, U16 ch, U8 bunicode, U8 fnt);
  41. void Direct_CharactorOutRect(PDC pdc,int * x,int* y,structRECT* prect,U16 ch,U8 bunicode, U8 fnt);
  42. void Direct_TextOut(PDC pdc, int x, int y, U16* ch, U8 bunicode, U8 fnt);
  43. void Direct_DrawRectFrame(PDC pdc, int left,int top ,int right, int bottom);
  44. void Direct_DrawRectFrame2(PDC pdc, structRECT *rect);
  45. void Direct_Draw3DRect(PDC pdc, int left, int top, int right, int bottom,COLORREF color1,COLORREF color2);
  46. void Direct_ArcTo1(PDC pdc, int x1, int y1, int R);
  47. void Direct_ArcTo2(PDC pdc, int x1, int y1, int R);
  48. void Direct_ArcTo(PDC pdc, int x1, int y1, U8 arctype, int R);
  49. void Direct_ShowBmp(PDC pdc, char filename[], int x, int y);
  50. void Direct_Bmpcopy(U32 *pbmp,int width,int length);
  51. #endif
  52. #endif //#if USE_MINIGUI==0
  53. #endif