ui/window.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include "u_mem.h"
#include "fix.h"
#include "types.h"
#include "gr.h"
#include "ui.h"
#include "key.h"
#include "mono.h"
#include "mouse.h"
#include "timer.h"

Defines

#define W_BACKGROUND   (wnd->background )
#define W_X   (wnd->x)
#define W_Y   (wnd->y)
#define W_WIDTH   (wnd->width)
#define W_HEIGHT   (wnd->height)
#define W_OLDCANVAS   (wnd->oldcanvas)
#define W_CANVAS   (wnd->canvas)
#define W_GADGET   (wnd->gadget)
#define W_TEXT_X   (wnd->text_x)
#define W_TEXT_Y   (wnd->text_y)
#define W_NEXT   (wnd->next)
#define W_PREV   (wnd->prev)
#define BORDER_WIDTH   8

Functions

void ui_draw_frame (short x1, short y1, short x2, short y2)
void ui_set_playback_speed (int speed)
int ui_record_events (int NumberOfEvents, UI_EVENT *buffer, int Flags)
int ui_play_events_realtime (int NumberOfEvents, UI_EVENT *buffer)
int ui_play_events_fast (int NumberOfEvents, UI_EVENT *buffer)
int ui_recorder_status ()
void add_window_to_end (UI_WINDOW *wnd)
void add_window_to_beg (UI_WINDOW *wnd)
void add_window_after (UI_WINDOW *w1, UI_WINDOW *w2)
void close_all ()
void remove_window (UI_WINDOW *wnd)
UI_WINDOWui_open_window (short x, short y, short w, short h, int flags)
void ui_close_window (UI_WINDOW *wnd)
void restore_state ()
void ui_reset_idle_seconds ()
int ui_get_idle_seconds ()
void ui_mega_process ()
void ui_wprintf (UI_WINDOW *wnd, char *format,...)
void ui_wprintf_at (UI_WINDOW *wnd, short x, short y, char *format,...)

Variables

UI_WINDOWCurWindow = NULL
UI_WINDOWFirstWindow = NULL
UI_WINDOWLastWindow = NULL
int last_keypress = 0
static unsigned int FrameCount = 0
unsigned int ui_event_counter = 0
unsigned int ui_number_of_events = 0
static UI_EVENTEventBuffer = NULL
static int Record = 0
static int RecordFlags = 0
static short MouseDX = 0
static short MouseDY = 0
static short MouseButtons = 0
static unsigned char SavedState [256]
static int PlaybackSpeed = 1
int last_event = 0

Define Documentation

#define BORDER_WIDTH   8
 

#define W_BACKGROUND   (wnd->background )
 

#define W_CANVAS   (wnd->canvas)
 

#define W_GADGET   (wnd->gadget)
 

#define W_HEIGHT   (wnd->height)
 

#define W_NEXT   (wnd->next)
 

#define W_OLDCANVAS   (wnd->oldcanvas)
 

#define W_PREV   (wnd->prev)
 

#define W_TEXT_X   (wnd->text_x)
 

#define W_TEXT_Y   (wnd->text_y)
 

#define W_WIDTH   (wnd->width)
 

#define W_X   (wnd->x)
 

#define W_Y   (wnd->y)
 


Function Documentation

void add_window_after UI_WINDOW w1,
UI_WINDOW w2
 

void add_window_to_beg UI_WINDOW wnd  ) 
 

void add_window_to_end UI_WINDOW wnd  ) 
 

void close_all  ) 
 

void remove_window UI_WINDOW wnd  ) 
 

void restore_state  ) 
 

void ui_close_window UI_WINDOW wnd  ) 
 

void ui_draw_frame short  x1,
short  y1,
short  x2,
short  y2
 

int ui_get_idle_seconds void   ) 
 

void ui_mega_process  ) 
 

UI_WINDOW* ui_open_window short  x,
short  y,
short  w,
short  h,
int  flags
 

int ui_play_events_fast int  NumberOfEvents,
UI_EVENT buffer
 

int ui_play_events_realtime int  NumberOfEvents,
UI_EVENT buffer
 

int ui_record_events int  NumberOfEvents,
UI_EVENT buffer,
int  Flags
 

int ui_recorder_status  ) 
 

void ui_reset_idle_seconds void   ) 
 

void ui_set_playback_speed int  speed  ) 
 

void ui_wprintf UI_WINDOW wnd,
char *  format,
  ...
 

void ui_wprintf_at UI_WINDOW wnd,
short  x,
short  y,
char *  format,
  ...
 


Variable Documentation

UI_WINDOW* CurWindow = NULL
 

UI_EVENT* EventBuffer = NULL [static]
 

UI_WINDOW* FirstWindow = NULL
 

unsigned int FrameCount = 0 [static]
 

int last_event = 0
 

int last_keypress = 0
 

UI_WINDOW* LastWindow = NULL
 

short MouseButtons = 0 [static]
 

short MouseDX = 0 [static]
 

short MouseDY = 0 [static]
 

int PlaybackSpeed = 1 [static]
 

int Record = 0 [static]
 

int RecordFlags = 0 [static]
 

unsigned char SavedState[256] [static]
 

unsigned int ui_event_counter = 0
 

unsigned int ui_number_of_events = 0
 


Generated on Mon Aug 28 20:55:34 2006 for D1X-Rebirth by  doxygen 1.4.6