1994-09-19 09:50:07 +00:00
|
|
|
#ifndef __XVTILITY_H
|
|
|
|
#define __XVTILITY_H
|
|
|
|
|
|
|
|
#ifndef XVT_INCL
|
|
|
|
#include <xvt.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __STDTYPES_H
|
|
|
|
#include <stdtypes.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __KEYS_H
|
|
|
|
#include <keys.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
RCT& resize_rect(short x, short y, short dx, short dy, WIN_TYPE wt, WINDOW parent);
|
|
|
|
|
|
|
|
void xvt_draw_rect(WINDOW w, const RCT& r, COLOR c1, COLOR c2, short depth = 1);
|
|
|
|
|
1994-11-28 11:01:27 +00:00
|
|
|
WINDOW xvt_create_window
|
|
|
|
(
|
|
|
|
WIN_TYPE wt,
|
|
|
|
short x, short y, short dx, short dy,
|
1995-01-02 09:33:00 +00:00
|
|
|
const char* caption,
|
|
|
|
int menu, WINDOW parent,
|
1994-11-28 11:01:27 +00:00
|
|
|
long flags,
|
|
|
|
EVENT_HANDLER eh,
|
|
|
|
long app_data
|
|
|
|
);
|
1995-06-27 10:18:49 +00:00
|
|
|
|
1996-06-20 13:53:24 +00:00
|
|
|
int allow_another_instance();
|
|
|
|
int deny_another_instance();
|
|
|
|
|
1994-11-28 11:01:27 +00:00
|
|
|
WINDOW xvt_create_statbar();
|
|
|
|
void xvt_statbar_set(const char* text, bool def = FALSE);
|
|
|
|
void xvt_statbar_refresh();
|
|
|
|
|
|
|
|
void beep();
|
|
|
|
void do_events();
|
1996-05-08 11:09:13 +00:00
|
|
|
|
1997-01-14 11:31:13 +00:00
|
|
|
void set_xvt_hooks();
|
1995-06-06 10:50:55 +00:00
|
|
|
void customize_colors();
|
1994-11-28 11:01:27 +00:00
|
|
|
void customize_controls(bool on);
|
1996-05-08 11:09:13 +00:00
|
|
|
|
1994-11-28 11:01:27 +00:00
|
|
|
KEY e_char_to_key(const EVENT* ep);
|
1996-05-08 11:09:13 +00:00
|
|
|
void dispatch_event(WINDOW win, const EVENT& e, bool post);
|
1994-11-29 17:31:42 +00:00
|
|
|
void dispatch_e_menu(WINDOW win, MENU_TAG item);
|
1994-11-28 11:01:27 +00:00
|
|
|
void dispatch_e_char(WINDOW win, KEY key);
|
|
|
|
void dispatch_e_scroll(WINDOW win, KEY key);
|
1996-05-08 11:09:13 +00:00
|
|
|
|
|
|
|
void begin_wait();
|
|
|
|
void end_wait();
|
1994-11-28 11:01:27 +00:00
|
|
|
|
1995-03-22 09:07:04 +00:00
|
|
|
void xvt_set_font(WINDOW win, const char* family, int style, int dim = 0);
|
1994-11-28 11:01:27 +00:00
|
|
|
|
|
|
|
bool xvt_test_menu_tag(MENU_TAG tag);
|
|
|
|
|
|
|
|
COLOR trans_color(char c);
|
|
|
|
PAT_STYLE trans_brush(char p);
|
|
|
|
PEN_STYLE trans_pen (char p);
|
|
|
|
|
|
|
|
extern short CHARX, CHARY, BASEY, ROWY;
|
|
|
|
|
1994-09-19 09:50:07 +00:00
|
|
|
#endif
|