gui.h 1.0 KB

123456789101112131415161718192021222324
  1. /*******************************************************************************
  2. * Emu51
  3. * gui.h:
  4. ******************************************************************************/
  5. #ifndef EMU51_GUI_H
  6. #define EMU51_GUI_H
  7. #include <stdint.h>
  8. #include <allegro.h>
  9. bool checkBit(uint8_t tmp_b, int pos);
  10. void draw_SEG_digit(BITMAP *buf, int x, int y, int color, int size, uint8_t segm_code);
  11. void draw_LED_bin(BITMAP *buf, int x, int y, int color, uint8_t code);
  12. void change_char(char *string, char ch, int pos);
  13. void insert_char(char *string, char ch, int pos, int length);
  14. void cut_char(char *string, int pos, int length);
  15. void change_ext(char *s);
  16. void GetText(char *text, BITMAP *buf, int x, int y, int w, int h, int length, char *title);
  17. void ShowMessage(char *text, BITMAP *buf, int x, int y, int w, int h, char *title);
  18. bool QuestionBox(char *text, BITMAP *buf, int x, int y, int w, int h, char *title, int _color);
  19. void ShowMsgEx(char *text, BITMAP *buf, int x, int y, int w, int h, char *title, int _color);
  20. #endif /* EMU51_GUI_H */