D:/WorkAround/prequengine/trunk/src/interface.h File Reference

#include "main.h"

Include dependency graph for interface.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define SCREEN_TEXTLIMIT_TOP   0
#define SCREEN_TEXTLIMIT_LEFT   0
#define SCREEN_TEXTLIMIT_RIGHT   SCREEN_WIDTH-1
#define SCREEN_TEXTLIMIT_BOTTOM   SCREEN_HEIGHT-1

Functions

void draw_line (int startWidth, int startHeight, int endWidth, int endHeight, int lineColor)
void blit_box (int left, int top, int right, int bottom, char *source, int leftDest, int topDest, char *dest)
void draw_transparent_box (int left, int top, int right, int bottom, int colorAdj)
void draw_splitted_box (int left, int top, int right, int bottom, unsigned char e)
void set_clip (int left, int top, int right, int bottom)
void save_clip ()
void reset_clip ()

Variables

int textWindowTop
int textWindowTopSave
int textWindowLeft
int textWindowLeftSave
int textWindowRight
int textWindowRightSave
int textWindowBottom
int textWindowBottomSave


Define Documentation

#define SCREEN_TEXTLIMIT_BOTTOM   SCREEN_HEIGHT-1

Screen bottom limit to display the texts

Definition at line 37 of file interface.h.

Referenced by add_redraw_area(), add_redraw_current_area(), draw_character(), draw_line(), draw_splitted_box(), draw_transparent_box(), init_vars(), reset_clip(), and set_clip().

#define SCREEN_TEXTLIMIT_LEFT   0

Screen left limit to display the texts

Definition at line 33 of file interface.h.

Referenced by draw_character(), draw_line(), draw_splitted_box(), and draw_transparent_box().

#define SCREEN_TEXTLIMIT_RIGHT   SCREEN_WIDTH-1

Screen right limit to display the texts

Definition at line 35 of file interface.h.

Referenced by add_redraw_area(), draw_line(), draw_splitted_box(), draw_transparent_box(), init_vars(), reset_clip(), and set_clip().

#define SCREEN_TEXTLIMIT_TOP   0

Screen top limit to display the texts

Definition at line 31 of file interface.h.

Referenced by draw_character(), draw_line(), draw_splitted_box(), draw_transparent_box(), and reset_clip().


Function Documentation

void blit_box ( int  left,
int  top,
int  right,
int  bottom,
char *  source,
int  leftDest,
int  topDest,
char *  dest 
)

Blit button box from working buffer to front buffer

Parameters:
left start width to draw the button
top start height to draw the button
right end width to draw the button
bottom end height to draw the button source screen buffer, in this case working buffer
leftDest start width to draw the button in destination buffer
topDest start height to draw the button in destination buffer destination screen buffer, in this case front buffer

Definition at line 169 of file interface.c.

References SCREEN_WIDTH, and screenLockupTable.

Referenced by blit_background_areas(), and draw_button_gfx().

void draw_line ( int  startWidth,
int  startHeight,
int  endWidth,
int  endHeight,
int  lineColor 
)

Draw button line

Parameters:
startWidth width value where the line starts
startHeight height value where the line starts
endWidth width value where the line ends
endHeight height value where the line ends
lineColor line color in the current palette

Definition at line 35 of file interface.c.

References frontVideoBuffer, SCREEN_TEXTLIMIT_BOTTOM, SCREEN_TEXTLIMIT_LEFT, SCREEN_TEXTLIMIT_RIGHT, SCREEN_TEXTLIMIT_TOP, and screenLockupTable.

Referenced by display_zones(), and draw_button_box().

void draw_splitted_box ( int  left,
int  top,
int  right,
int  bottom,
unsigned char  e 
)

void draw_transparent_box ( int  left,
int  top,
int  right,
int  bottom,
int  colorAdj 
)

Draws inside buttons transparent area

Parameters:
left start width to draw the button
top start height to draw the button
right end width to draw the button
bottom end height to draw the button
colorAdj index to adjust the transparent box color

Definition at line 210 of file interface.c.

void reset_clip (  ) 

void save_clip (  ) 

void set_clip ( int  left,
int  top,
int  right,
int  bottom 
)


Variable Documentation

Definition at line 46 of file interface.h.

Referenced by save_clip().

Definition at line 42 of file interface.h.

Referenced by save_clip().

Definition at line 44 of file interface.h.

Referenced by save_clip().

Definition at line 40 of file interface.h.

Referenced by save_clip().


Generated on Thu Sep 18 14:14:48 2008 for Prequengine by  doxygen 1.5.5