gds.h 1006 B

123456789101112131415161718192021222324252627282930
  1. #ifndef _GDS_H_
  2. #define _GDS_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #define GDS_COLOR_BLACK 0
  6. #define GDS_COLOR_WHITE 1
  7. #define GDS_COLOR_XOR 2
  8. struct GDS_Device;
  9. struct GDS_FontDef;
  10. typedef struct GDS_Device* (*GDS_DetectFunc)(char *Driver, struct GDS_Device *Device);
  11. struct GDS_Device* GDS_AutoDetect( char *Driver, GDS_DetectFunc[] );
  12. void GDS_SetContrast( struct GDS_Device* Device, uint8_t Contrast );
  13. void GDS_DisplayOn( struct GDS_Device* Device );
  14. void GDS_DisplayOff( struct GDS_Device* Device );
  15. void GDS_Update( struct GDS_Device* Device );
  16. void GDS_SetHFlip( struct GDS_Device* Device, bool On );
  17. void GDS_SetVFlip( struct GDS_Device* Device, bool On );
  18. int GDS_GetWidth( struct GDS_Device* Device );
  19. int GDS_GetHeight( struct GDS_Device* Device );
  20. void GDS_ClearExt( struct GDS_Device* Device, bool full, ...);
  21. void GDS_Clear( struct GDS_Device* Device, int Color );
  22. void GDS_ClearWindow( struct GDS_Device* Device, int x1, int y1, int x2, int y2, int Color );
  23. #endif