Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef _UI_H
- #define _UI_H
- #define PART 8
- #include "event.h"
- struct _RGB
- /* Color struct! */
- {
- unsigned char b;
- /* BLUE */
- unsigned char g;
- /* GREEN */
- unsigned char r;
- /* RED */
- };
- typedef struct _RGB RGB;
- void DrawTextBox(int x1, int y1, int x2, int y2);
- /* Draw an text box similar to Win9x */
- void DrawButton(void *n, int x1, int y1, int x2, int y2, char *title);
- /* Draw a button on a specific place */
- void DrawWindow(void *n, int x1, int y1, int x2, int y2, char *title);
- /* Draw an interface similar to Win9x */
- void DrawStatusBox(void *n);
- /* Draw an status box similar to Win9x */
- void DrawMainTextBox(void *n);
- /* The main text box */
- void DrawMainWindow(void *n);
- /* Draw main window */
- void IsExit(void *n);
- /* Check whether an window should be closed */
- int RAvsRA(int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4);
- /* If a RectAngle covers the other one */
- void SetColor(unsigned int n);
- /* Workaround for quick access to change the function */
- void FadingColor(void *null);
- /* Color fading while loading and unloading */
- void InitColor(void *null);
- /* Initialize all colors to black, so the fading could work later */
- void ChangeDotted(void *n);
- /* Change dotted mode */
- void ChangeHighlight(void *n);
- /* Change highlight mode */
- void CheckStatus(void *n);
- /* Check and display the status in the main status box */
- void ShowHelp(void *n);
- /* Show Help messages */
- void OpenFile(void *n, char *f);
- /* Open an file */
- void CleanUp(void *n);
- /* Both mouse and cursor workaround */
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement