Window procedures

Window procedures — Calling procedures in the external interface

Synopsis


#include <nhproxy/nhproxy.h>


nhproxy_bool_t nhproxy_proc_init_nhwindows  (int *argcp,
                                             char **argv);
nhproxy_bool_t nhproxy_proc_player_selection
                                            (int *role,
                                             int *race,
                                             int *gend,
                                             int *align);
char*       nhproxy_proc_askname            (void);
void        nhproxy_proc_get_nh_event       (void);
void        nhproxy_proc_exit_nhwindows     (const char *str);
void        nhproxy_proc_suspend_nhwindows  (const char *str);
void        nhproxy_proc_resume_nhwindows   (void);
int         nhproxy_proc_create_nhwindow    (int type);
void        nhproxy_proc_clear_nhwindow     (int window,
                                             int rows,
                                             int cols,
                                             int layers);
void        nhproxy_proc_display_nhwindow   (int window,
                                             nhproxy_bool_t blocking);
void        nhproxy_proc_destroy_nhwindow   (int window);
void        nhproxy_proc_curs               (int window,
                                             int x,
                                             int y);
void        nhproxy_proc_putstr             (int window,
                                             int attr,
                                             const char *str);
void        nhproxy_proc_display_file       (int fh);
void        nhproxy_proc_start_menu         (int window);
void        nhproxy_proc_add_menu           (int window,
                                             int glyph,
                                             int identifier,
                                             char ch,
                                             char gch,
                                             int attr,
                                             const char *str,
                                             nhproxy_bool_t preselected);
void        nhproxy_proc_end_menu           (int window,
                                             const char *prompt);
int         nhproxy_proc_select_menu        (int window,
                                             int how,
                                             struct nhproxy_mi **menu_list);
char        nhproxy_proc_message_menu       (char let,
                                             int how,
                                             const char *mesg);
void        nhproxy_proc_update_inventory   (void);
void        nhproxy_proc_mark_synch         (void);
void        nhproxy_proc_wait_synch         (void);
void        nhproxy_proc_cliparound         (int x,
                                             int y);
void        nhproxy_proc_update_positionbar (char *posbar);
void        nhproxy_proc_print_glyph        (int w,
                                             int x,
                                             int y,
                                             int glyph);
int         nhproxy_proc_raw_print          (const char *str);
int         nhproxy_proc_raw_print_bold     (const char *str);
int         nhproxy_proc_nhgetch            (void);
int         nhproxy_proc_nh_poskey          (int *x,
                                             int *y,
                                             int *mod);
void        nhproxy_proc_nhbell             (void);
int         nhproxy_proc_doprev_message     (void);
char        nhproxy_proc_yn_function        (const char *query,
                                             const char *resp,
                                             char def,
                                             int *countp);
char*       nhproxy_proc_getlin             (const char *query);
int         nhproxy_proc_get_ext_cmd        (void);
void        nhproxy_proc_number_pad         (int state);
void        nhproxy_proc_delay_output       (void);
void        nhproxy_proc_change_color       (int color,
                                             long rgb,
                                             int reverse);
void        nhproxy_proc_change_background  (int white_or_black);
short       nhproxy_proc_set_font_name      (int window,
                                             char *font);
char*       nhproxy_proc_get_color_string   (void);
void        nhproxy_proc_start_screen       (void);
void        nhproxy_proc_end_screen         (void);
nhproxy_bool_t nhproxy_proc_outrip          (int window,
                                             const char *killed_by);
void        nhproxy_proc_preference_update  (const char *pref,
                                             const char *value);
void        nhproxy_proc_status             (int reconfig,
                                             int nv,
                                             const char **values);

Description

Details

nhproxy_proc_init_nhwindows ()

nhproxy_bool_t nhproxy_proc_init_nhwindows  (int *argcp,
                                             char **argv);

argcp :
argv :
Returns :

nhproxy_proc_player_selection ()

nhproxy_bool_t nhproxy_proc_player_selection
                                            (int *role,
                                             int *race,
                                             int *gend,
                                             int *align);

role :
race :
gend :
align :
Returns :

nhproxy_proc_askname ()

char*       nhproxy_proc_askname            (void);

Returns :

nhproxy_proc_get_nh_event ()

void        nhproxy_proc_get_nh_event       (void);


nhproxy_proc_exit_nhwindows ()

void        nhproxy_proc_exit_nhwindows     (const char *str);

str :

nhproxy_proc_suspend_nhwindows ()

void        nhproxy_proc_suspend_nhwindows  (const char *str);

str :

nhproxy_proc_resume_nhwindows ()

void        nhproxy_proc_resume_nhwindows   (void);


nhproxy_proc_create_nhwindow ()

int         nhproxy_proc_create_nhwindow    (int type);

type :
Returns :

nhproxy_proc_clear_nhwindow ()

void        nhproxy_proc_clear_nhwindow     (int window,
                                             int rows,
                                             int cols,
                                             int layers);

window :
rows :
cols :
layers :

nhproxy_proc_display_nhwindow ()

void        nhproxy_proc_display_nhwindow   (int window,
                                             nhproxy_bool_t blocking);

window :
blocking :

nhproxy_proc_destroy_nhwindow ()

void        nhproxy_proc_destroy_nhwindow   (int window);

window :

nhproxy_proc_curs ()

void        nhproxy_proc_curs               (int window,
                                             int x,
                                             int y);

window :
x :
y :

nhproxy_proc_putstr ()

void        nhproxy_proc_putstr             (int window,
                                             int attr,
                                             const char *str);

window :
attr :
str :

nhproxy_proc_display_file ()

void        nhproxy_proc_display_file       (int fh);

fh :

nhproxy_proc_start_menu ()

void        nhproxy_proc_start_menu         (int window);

window :

nhproxy_proc_add_menu ()

void        nhproxy_proc_add_menu           (int window,
                                             int glyph,
                                             int identifier,
                                             char ch,
                                             char gch,
                                             int attr,
                                             const char *str,
                                             nhproxy_bool_t preselected);

window :
glyph :
identifier :
ch :
gch :
attr :
str :
preselected :

nhproxy_proc_end_menu ()

void        nhproxy_proc_end_menu           (int window,
                                             const char *prompt);

window :
prompt :

nhproxy_proc_select_menu ()

int         nhproxy_proc_select_menu        (int window,
                                             int how,
                                             struct nhproxy_mi **menu_list);

window :
how :
menu_list :
Returns :

nhproxy_proc_message_menu ()

char        nhproxy_proc_message_menu       (char let,
                                             int how,
                                             const char *mesg);

let :
how :
mesg :
Returns :

nhproxy_proc_update_inventory ()

void        nhproxy_proc_update_inventory   (void);


nhproxy_proc_mark_synch ()

void        nhproxy_proc_mark_synch         (void);


nhproxy_proc_wait_synch ()

void        nhproxy_proc_wait_synch         (void);


nhproxy_proc_cliparound ()

void        nhproxy_proc_cliparound         (int x,
                                             int y);

x :
y :

nhproxy_proc_update_positionbar ()

void        nhproxy_proc_update_positionbar (char *posbar);

posbar :

nhproxy_proc_print_glyph ()

void        nhproxy_proc_print_glyph        (int w,
                                             int x,
                                             int y,
                                             int glyph);

w :
x :
y :
glyph :

nhproxy_proc_raw_print ()

int         nhproxy_proc_raw_print          (const char *str);

str :
Returns :

nhproxy_proc_raw_print_bold ()

int         nhproxy_proc_raw_print_bold     (const char *str);

str :
Returns :

nhproxy_proc_nhgetch ()

int         nhproxy_proc_nhgetch            (void);

Returns :

nhproxy_proc_nh_poskey ()

int         nhproxy_proc_nh_poskey          (int *x,
                                             int *y,
                                             int *mod);

x :
y :
mod :
Returns :

nhproxy_proc_nhbell ()

void        nhproxy_proc_nhbell             (void);


nhproxy_proc_doprev_message ()

int         nhproxy_proc_doprev_message     (void);

Returns :

nhproxy_proc_yn_function ()

char        nhproxy_proc_yn_function        (const char *query,
                                             const char *resp,
                                             char def,
                                             int *countp);

query :
resp :
def :
countp :
Returns :

nhproxy_proc_getlin ()

char*       nhproxy_proc_getlin             (const char *query);

query :
Returns :

nhproxy_proc_get_ext_cmd ()

int         nhproxy_proc_get_ext_cmd        (void);

Returns :

nhproxy_proc_number_pad ()

void        nhproxy_proc_number_pad         (int state);

state :

nhproxy_proc_delay_output ()

void        nhproxy_proc_delay_output       (void);


nhproxy_proc_change_color ()

void        nhproxy_proc_change_color       (int color,
                                             long rgb,
                                             int reverse);

color :
Param2 :
reverse :

nhproxy_proc_change_background ()

void        nhproxy_proc_change_background  (int white_or_black);

white_or_black :

nhproxy_proc_set_font_name ()

short       nhproxy_proc_set_font_name      (int window,
                                             char *font);

window :
font :
Returns :

nhproxy_proc_get_color_string ()

char*       nhproxy_proc_get_color_string   (void);

Returns :

nhproxy_proc_start_screen ()

void        nhproxy_proc_start_screen       (void);


nhproxy_proc_end_screen ()

void        nhproxy_proc_end_screen         (void);


nhproxy_proc_outrip ()

nhproxy_bool_t nhproxy_proc_outrip          (int window,
                                             const char *killed_by);

window :
killed_by :
Returns :

nhproxy_proc_preference_update ()

void        nhproxy_proc_preference_update  (const char *pref,
                                             const char *value);

pref :
value :

nhproxy_proc_status ()

void        nhproxy_proc_status             (int reconfig,
                                             int nv,
                                             const char **values);

reconfig :
nv :
values :