gds.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef _GDS_H_
  2. #define _GDS_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. enum { GDS_COLOR_L0 = 0, GDS_COLOR_L1, GDS_COLOR_L2, GDS_COLOR_L3, GDS_COLOR_L4, GDS_COLOR_L5, GDS_COLOR_L6, GDS_COLOR_L7,
  6. GDS_COLOR_L8, GDS_COLOR_L9, GDS_COLOR_L10, GDS_COLOR_L11, GDS_COLOR_L12, GDS_COLOR_L13, GDS_COLOR_L14, GDS_COLOR_L15,
  7. };
  8. #define GDS_COLOR_BLACK GDS_COLOR_L0
  9. #define GDS_COLOR_WHITE GDS_COLOR_L15
  10. #define GDS_COLOR_XOR 2
  11. struct GDS_Device;
  12. struct GDS_FontDef;
  13. typedef struct GDS_Device* GDS_DetectFunc(char *Driver, struct GDS_Device *Device);
  14. struct GDS_Device* GDS_AutoDetect( char *Driver, GDS_DetectFunc* DetectFunc[] );
  15. void GDS_SetContrast( struct GDS_Device* Device, uint8_t Contrast );
  16. void GDS_DisplayOn( struct GDS_Device* Device );
  17. void GDS_DisplayOff( struct GDS_Device* Device );
  18. void GDS_Update( struct GDS_Device* Device );
  19. void GDS_SetHFlip( struct GDS_Device* Device, bool On );
  20. void GDS_SetVFlip( struct GDS_Device* Device, bool On );
  21. int GDS_GetWidth( struct GDS_Device* Device );
  22. int GDS_GetHeight( struct GDS_Device* Device );
  23. void GDS_ClearExt( struct GDS_Device* Device, bool full, ...);
  24. void GDS_Clear( struct GDS_Device* Device, int Color );
  25. void GDS_ClearWindow( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color );
  26. #endif