Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.60 KB | None | 0 0
  1. #ifndef _UI_H
  2. #define _UI_H
  3.  
  4. #define PART 8
  5.  
  6. #include "event.h"
  7.  
  8. struct _RGB
  9. /* Color struct! */
  10. {
  11.     unsigned char b;
  12.     /* BLUE */
  13.    
  14.     unsigned char g;
  15.     /* GREEN */
  16.    
  17.     unsigned char r;
  18.     /* RED */
  19. };
  20. typedef struct _RGB RGB;
  21.  
  22. void DrawTextBox(int x1, int y1, int x2, int y2);
  23. /* Draw an text box similar to Win9x */
  24.  
  25. void DrawButton(void *n, int x1, int y1, int x2, int y2, char *title);
  26. /* Draw a button on a specific place */
  27.  
  28. void DrawWindow(void *n, int x1, int y1, int x2, int y2, char *title);
  29. /* Draw an interface similar to Win9x */
  30.  
  31. void DrawStatusBox(void *n);
  32. /* Draw an status box similar to Win9x */
  33.  
  34. void DrawMainTextBox(void *n);
  35. /* The main text box */
  36.  
  37. void DrawMainWindow(void *n);
  38. /* Draw main window */
  39.  
  40. void IsExit(void *n);
  41. /* Check whether an window should be closed */
  42.  
  43. int RAvsRA(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
  44. /* If a RectAngle covers the other one */
  45.  
  46. void SetColor(unsigned int n);
  47. /* Workaround for quick access to change the function */
  48.  
  49. void FadingColor(void *null);
  50. /* Color fading while loading and unloading */
  51.  
  52. void InitColor(void *null);
  53. /* Initialize all colors to black, so the fading could work later */
  54.  
  55. void ChangeDotted(void *n);
  56. /* Change dotted mode */
  57.  
  58. void ChangeHighlight(void *n);
  59. /* Change highlight mode */
  60.  
  61. void CheckStatus(void *n);
  62. /* Check and display the status in the main status box */
  63.  
  64. void ShowHelp(void *n);
  65. /* Show Help messages */
  66.  
  67. void OpenFile(void *n, char *f);
  68. /* Open an file */
  69.  
  70. void CleanUp(void *n);
  71. /* Both mouse and cursor workaround */
  72.  
  73. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement