00001
00025 #ifndef INTERFACE_H
00026 #define INTERFACE_H
00027
00028 #include "main.h"
00029
00031 #define SCREEN_TEXTLIMIT_TOP 0
00032
00033 #define SCREEN_TEXTLIMIT_LEFT 0
00034
00035 #define SCREEN_TEXTLIMIT_RIGHT SCREEN_WIDTH-1
00036
00037 #define SCREEN_TEXTLIMIT_BOTTOM SCREEN_HEIGHT-1
00038
00039 int textWindowTop;
00040 int textWindowTopSave;
00041 int textWindowLeft;
00042 int textWindowLeftSave;
00043 int textWindowRight;
00044 int textWindowRightSave;
00045 int textWindowBottom;
00046 int textWindowBottomSave;
00047
00054 void draw_line(int startWidth, int startHeight, int endWidth, int endHeight, int lineColor);
00064 void blit_box(int left, int top, int right, int bottom, char *source, int leftDest, int topDest, char *dest);
00071 void draw_transparent_box(int left, int top, int right, int bottom, int colorAdj);
00072
00073 void draw_splitted_box(int left, int top, int right, int bottom, unsigned char e);
00074
00075 void set_clip(int left, int top, int right, int bottom);
00076 void save_clip();
00077 void reset_clip();
00078
00079 #endif