File win/X11/winX.c

The status display looks better when left justified. XtSetArg(args[0], XtNhorizDistance, status_hd+((message_vp_width-status_width)/2)); XtSetValues(status, args, ONE);

References Functions: X11_askname()win/X11/winX.c
  X11_clear_nhwindow()win/X11/winX.c
  X11_create_nhwindow()win/X11/winX.c
  X11_curs()win/X11/winX.c
  X11_delay_output()win/X11/winX.c
  X11_destroy_nhwindow()win/X11/winX.c
  X11_display_file()win/X11/winX.c
  X11_display_nhwindow()win/X11/winX.c
  X11_doprev_message()win/X11/winX.c
  X11_end_screen()win/X11/winX.c
  X11_exit_nhwindows()win/X11/winX.c
  X11_get_nh_event()win/X11/winX.c
  X11_getlin()win/X11/winX.c
  X11_hangup()win/X11/winX.c
  X11_init_nhwindows()win/X11/winX.c
  X11_mark_synch()win/X11/winX.c
  X11_nh_poskey()win/X11/winX.c
  X11_nhbell()win/X11/winX.c
  X11_nhgetch()win/X11/winX.c
  X11_number_pad()win/X11/winX.c
  X11_putstr()win/X11/winX.c
  X11_raw_print()win/X11/winX.c
  X11_raw_print_bold()win/X11/winX.c
  X11_resume_nhwindows()win/X11/winX.c
  X11_start_screen()win/X11/winX.c
  X11_suspend_nhwindows()win/X11/winX.c
  X11_update_inventory()win/X11/winX.c
  X11_wait_synch()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
  askname_delete()win/X11/winX.c
  delete_file()win/X11/winX.c
  dismiss_file()win/X11/winX.c
  genl_message_menu()src/windows.c
  genl_outrip()src/rip.c
  getline_delete()win/X11/winX.c
  nh_keyscroll()win/X11/winX.c
  yn_delete()win/X11/winX.c
  yn_key()win/X11/winX.c
  X11_add_menu(), X11_cliparound(), X11_end_menu(), X11_get_ext_cmd(), X11_player_selection(), X11_print_glyph(), X11_select_menu(), X11_start_menu(), algn_key(), delete_text(), dismiss_text(), ec_delete(), ec_key(), gend_key(), key_dismiss_text(), map_input(), menu_delete(), menu_key(), ps_key(), race_key()
References Variables: nh32icon_bitswin/X11/winX.c
  nh56icon_bitswin/X11/winX.c
  nh72icon_bitswin/X11/winX.c


Included Files


Preprocessor definitions

#define PRESERVE_NO_SYSV

#define done( type, value )

#define CANCEL_STR "\033"

#define LLEN 128

#define TITLEBAR_SPACE 18

#define H_DELTA 0.25


Type struct icon_info

struct icon_info
struct icon_info 
   { 
     const char* name; 
     unsigned char* bits; 
     unsigned width; 
     unsigned height; 
   } 

Global Variable window_list

struct xwindow window_list[20]
Visible in:  win/X11/winX.c
Used in: X11_clear_nhwindow()win/X11/winX.c
  X11_create_nhwindow()win/X11/winX.c
  X11_curs()win/X11/winX.c
  X11_destroy_nhwindow()win/X11/winX.c
  X11_display_nhwindow()win/X11/winX.c
  X11_init_nhwindows()win/X11/winX.c
  X11_mark_synch()win/X11/winX.c
  X11_putstr()win/X11/winX.c
  X11_update_inventory()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
  d_timeout()win/X11/winX.c
  find_free_window()win/X11/winX.c
  find_widget()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
  input_event()win/X11/winX.c
  msgkey()win/X11/winX.c

Global Variable app_context

XtAppContext app_context
Visible in:  win/X11/winX.c
Used in: X11_delay_output()win/X11/winX.c
  X11_init_nhwindows()win/X11/winX.c
  init_standard_windows()win/X11/winX.c

Global Variable toplevel

Widget toplevel
Visible in:  win/X11/winX.c
  positionpopup()win/X11/dialogs.c
Used in: X11_askname()win/X11/winX.c
  X11_display_file()win/X11/winX.c
  X11_exit_nhwindows()win/X11/winX.c
  X11_getlin()win/X11/winX.c
  X11_init_nhwindows()win/X11/winX.c
  X11_mark_synch()win/X11/winX.c
  X11_nhbell()win/X11/winX.c
  X11_wait_synch()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
  nh_XtPopdown()win/X11/winX.c
  nh_XtPopup()win/X11/winX.c
  positionpopup()win/X11/dialogs.c
  win_visible()win/X11/winX.c

Global Variable wm_delete_window

Atom wm_delete_window
Visible in:  win/X11/winX.c
Used in: X11_getlin()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
  nh_XtPopup()win/X11/winX.c

Global Variable click_x

int click_x
Visible in:  win/X11/winX.c
Used in: X11_nh_poskey()win/X11/winX.c

Global Variable click_y

int click_y
Visible in:  win/X11/winX.c
Used in: X11_nh_poskey()win/X11/winX.c

Global Variable click_button

int click_button
Visible in:  win/X11/winX.c
Used in: X11_nh_poskey()win/X11/winX.c

Global Variable updated_inventory

int updated_inventory
Visible in:  win/X11/winX.c
Used in: X11_update_inventory()win/X11/winX.c

Global Variable appResources

AppResources appResources
Visible in:  win/X11/winX.c
Used in: X11_init_nhwindows()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
  nh_XtPopdown()win/X11/winX.c
  nh_XtPopup()win/X11/winX.c
  yn_key()win/X11/winX.c

Global Variable input_func

void (*input_func)(void)
Visible in:  win/X11/winX.c
Used in: X11_yn_function()win/X11/winX.c
  yn_key()win/X11/winX.c

Global Variable X11_procs

struct window_procs X11_procs
Visible in:  win/X11/winX.c

Global Variable nhcolorConvertArgs

const XtConvertArgRec nhcolorConvertArgs[]
Visible in:  win/X11/winX.c
Used in: X11_init_nhwindows()win/X11/winX.c

External Variables

tile_pixmap
extern Pixmap tile_pixmap

Local Variables

nh72icon_bits
static unsigned char nh72icon_bits[]
Included from win/X11/nh72icon
Used in:  win/X11/winX.c

nh56icon_bits
static unsigned char nh56icon_bits[]
Included from win/X11/nh56icon
Used in:  win/X11/winX.c

nh32icon_bits
static unsigned char nh32icon_bits[]
Included from win/X11/nh32icon
Used in:  win/X11/winX.c

icon_data
static struct icon_info icon_data[]
Used in: X11_init_nhwindows()

x_inited
static boolean x_inited
Used in: X11_create_nhwindow()
  X11_delay_output()
  X11_init_nhwindows()
  X11_mark_synch()
  X11_nhbell()
  X11_update_inventory()
  X11_wait_synch()

message_win
static winid message_win
Used in: X11_create_nhwindow()
  init_standard_windows()

map_win
static winid map_win
Used in: X11_create_nhwindow()
  init_standard_windows()

status_win
static winid status_win
Used in: X11_create_nhwindow()
  init_standard_windows()

icon_pixmap
static Pixmap icon_pixmap
Used in: X11_exit_nhwindows()
  X11_init_nhwindows()

actions
static XtActionsRec actions[]
Used in: X11_init_nhwindows()

resources
static XtResource resources[]
Used in: X11_init_nhwindows()

getline_popup
static Widget getline_popup
Used in: X11_getlin()

getline_dialog
static Widget getline_dialog
Used in: X11_getlin()

getline_input
static char* getline_input
Used in: X11_getlin()
  abort_button()
  done_button()
  getline_delete()

display_translations
static const char display_translations[]
Used in: X11_display_file()

yn_quitchars
static const char* yn_quitchars
Used in: yn_key()

yn_choices
static const char* yn_choices
Used in: X11_yn_function()
  yn_delete()
  yn_key()

yn_def
static char yn_def
Used in: X11_yn_function()
  yn_key()

yn_return
static char yn_return
Used in: X11_yn_function()
  yn_delete()
  yn_key()

yn_esc_map
static char yn_esc_map
Used in: X11_yn_function()
  yn_delete()
  yn_key()

yn_popup
static Widget yn_popup
Used in: X11_yn_function()

yn_label
static Widget yn_label
Used in: X11_yn_function()
  init_standard_windows()

yn_getting_num
static boolean yn_getting_num
Used in: X11_yn_function()
  yn_delete()
  yn_key()

yn_ndigits
static int yn_ndigits
Used in: yn_key()

yn_val
static long yn_val
Used in: yn_key()

yn_translations
static const char yn_translations[]
Used in: X11_yn_function()
  init_standard_windows()


Global Function X11_askname()

void X11_askname ( void )
Prototyped in: include/winX.h
Calls: CreateDialog()win/X11/dialogs.c
  SetDialogPrompt()win/X11/dialogs.c
  SetDialogResponse()win/X11/dialogs.c
  nh_XtPopup()win/X11/winX.c
  positionpopup()win/X11/dialogs.c
  XtCreatePopupShell(), XtOverrideTranslations(), XtParseTranslationTable(), XtRealizeWidget(), x_event()
Used in:  win/X11/winX.c
References Functions: askname_done()win/X11/winX.c
References Variables: toplevelwin/X11/winX.c

Global Function X11_clear_nhwindow()

void X11_clear_nhwindow ( winid window )
Prototyped in: include/winX.h
Calls: panic()src/end.c
  clear_map_window(), clear_text_window()
Used in:  win/X11/winX.c
References Variables: window_listwin/X11/winX.c

Global Function X11_create_nhwindow()

winid X11_create_nhwindow ( int type )
Prototyped in: include/winX.h
Calls: find_free_window()win/X11/winX.c
  panic()src/end.c
  create_map_window(), create_menu_window(), create_message_window(), create_status_window(), create_text_window()
Called by: X11_putstr()win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: map_winwin/X11/winX.c
  message_winwin/X11/winX.c
  status_winwin/X11/winX.c
  window_listwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_curs()

void X11_curs ( winid window, int x, int y )
Prototyped in: include/winX.h
Calls: impossible()src/pline.c
  panic()src/end.c
Used in:  win/X11/winX.c
References Variables: window_listwin/X11/winX.c

Global Function X11_delay_output()

void X11_delay_output ( void )
Prototyped in: include/winX.h
Calls: XtAppAddTimeOut(), x_event()
Used in:  win/X11/winX.c
References Functions: d_timeout()win/X11/winX.c
References Variables: app_contextwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_destroy_nhwindow()

void X11_destroy_nhwindow ( winid window )
Prototyped in: include/winX.h
Calls: panic()src/end.c
  destroy_map_window(), destroy_menu_window(), destroy_message_window(), destroy_status_window(), destroy_text_window()
Called by: X11_exit_nhwindows()win/X11/winX.c
  X11_putstr()win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: WIN_INVENsrc/decl.c
  WIN_MAPsrc/decl.c
  WIN_MESSAGEsrc/decl.c
  WIN_STATUSsrc/decl.c
  iflagssrc/decl.c
  window_listwin/X11/winX.c

Global Function X11_display_file()

void X11_display_file ( const char* str, boolean complain )
Prototyped in: include/winX.h
Calls: alloc()src/alloc.c
  dlb_fclose()src/dlb.c
  dlb_fgets()src/dlb.c
  dlb_fopen()src/dlb.c
  nh_XtPopup()win/X11/winX.c
  pline()src/pline.c
  XtCreateManagedWidget(), XtCreatePopupShell(), XtGetValues(), XtOverrideTranslations(), XtParseTranslationTable(), XtSetValues(), free(), strcat(), strlen()
Used in:  win/X11/winX.c
References Variables: display_translationswin/X11/winX.c
  toplevelwin/X11/winX.c

Global Function X11_display_nhwindow()

void X11_display_nhwindow ( winid window, boolean blocking )
Prototyped in: include/winX.h
Calls: impossible()src/pline.c
  nh_XtPopup()win/X11/winX.c
  panic()src/end.c
  X11_select_menu(), display_map_window(), display_message_window(), display_text_window(), free(), x_event()
Used in:  win/X11/winX.c
References Variables: WIN_MESSAGEsrc/decl.c
  window_listwin/X11/winX.c

Global Function X11_doprev_message()

int X11_doprev_message ( void )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_end_screen()

void X11_end_screen ( void )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_exit_nhwindows()

void X11_exit_nhwindows ( const char* dummy )
Prototyped in: include/winX.h
Calls: X11_destroy_nhwindow()win/X11/winX.c
  XFreePixmap()
Used in:  win/X11/winX.c
References Variables: WIN_INVENsrc/decl.c
  WIN_MAPsrc/decl.c
  WIN_MESSAGEsrc/decl.c
  WIN_STATUSsrc/decl.c
  icon_pixmapwin/X11/winX.c
  toplevelwin/X11/winX.c
  tile_pixmap

Global Function X11_get_nh_event()

void X11_get_nh_event ( void )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_getlin()

void X11_getlin ( const char* question, char* input )
Prototyped in: include/winX.h
Calls: CreateDialog()win/X11/dialogs.c
  SetDialogPrompt()win/X11/dialogs.c
  SetDialogResponse()win/X11/dialogs.c
  flush_screen()src/display.c
  nh_XtPopup()win/X11/winX.c
  positionpopup()win/X11/dialogs.c
  XSetWMProtocols(), XtCreatePopupShell(), XtOverrideTranslations(), XtParseTranslationTable(), XtRealizeWidget(), x_event()
Used in:  win/X11/winX.c
References Functions: abort_button()win/X11/winX.c
  done_button()win/X11/winX.c
References Variables: getline_dialogwin/X11/winX.c
  getline_inputwin/X11/winX.c
  getline_popupwin/X11/winX.c
  toplevelwin/X11/winX.c
  wm_delete_windowwin/X11/winX.c

Global Function X11_init_nhwindows()

void X11_init_nhwindows ( int* argcp, char** argv )
Prototyped in: include/winX.h
Calls: X11_putstr()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
  XCreateBitmapFromData(), XSetIOErrorHandler(), XSetWMHints(), XtAppAddActions(), XtAppInitialize(), XtGetApplicationResources(), XtOverrideTranslations(), XtParseTranslationTable(), XtSetTypeConverter(), geteuid(), getuid(), memset(), seteuid(), strcmp()
Used in:  win/X11/winX.c
References Functions: hangup()src/save.c
  nhCvtStringToPixel()win/X11/winX.c
  nhFreePixel()win/X11/winX.c
References Variables: WIN_MESSAGEsrc/decl.c
  actionswin/X11/winX.c
  appResourceswin/X11/winX.c
  app_contextwin/X11/winX.c
  icon_datawin/X11/winX.c
  icon_pixmapwin/X11/winX.c
  nhcolorConvertArgswin/X11/winX.c
  resourceswin/X11/winX.c
  toplevelwin/X11/winX.c
  window_listwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_mark_synch()

void X11_mark_synch ( void )
Prototyped in: include/winX.h
Calls: XSync(), display_message_window()
Used in:  win/X11/winX.c
References Variables: WIN_MESSAGEsrc/decl.c
  toplevelwin/X11/winX.c
  window_listwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_nh_poskey()

int X11_nh_poskey ( int* x, int* y, int* mod )
Prototyped in: include/winX.h
Calls: input_event()win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: click_buttonwin/X11/winX.c
  click_xwin/X11/winX.c
  click_ywin/X11/winX.c

Global Function X11_nhbell()

void X11_nhbell ( void )
Prototyped in: include/winX.h
Calls: XBell()
Called by: askname_done()win/X11/winX.c
  yn_key()win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: toplevelwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_nhgetch()

int X11_nhgetch ( void )
Prototyped in: include/winX.h
Calls: input_event()win/X11/winX.c
Used in:  win/X11/winX.c

Global Function X11_number_pad()

void X11_number_pad ( int state )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_putstr()

void X11_putstr ( winid window, int attr, const char* str )
Prototyped in: include/winX.h
Calls: X11_create_nhwindow()win/X11/winX.c
  X11_destroy_nhwindow()win/X11/winX.c
  impossible()src/pline.c
  panic()src/end.c
  add_to_text_window(), adjust_status(), append_message(), strncpy()
Called by: X11_init_nhwindows()win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: toplinessrc/decl.c
  window_listwin/X11/winX.c

Global Function X11_raw_print()

void X11_raw_print ( const char* str )
Prototyped in: include/winX.h
Calls: puts()
Used in:  win/X11/winX.c

Global Function X11_raw_print_bold()

void X11_raw_print_bold ( const char* str )
Prototyped in: include/winX.h
Calls: puts()
Used in:  win/X11/winX.c

Global Function X11_resume_nhwindows()

void X11_resume_nhwindows ( void )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_start_screen()

void X11_start_screen ( void )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_suspend_nhwindows()

void X11_suspend_nhwindows ( const char* str )
Prototyped in: include/winX.h
Used in:  win/X11/winX.c

Global Function X11_update_inventory()

void X11_update_inventory ( void )
Prototyped in: include/winX.h
Calls: display_inventory()src/invent.c
Used in:  win/X11/winX.c
References Variables: WIN_INVENsrc/decl.c
  updated_inventorywin/X11/winX.c
  window_listwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_wait_synch()

void X11_wait_synch ( void )
Prototyped in: include/winX.h
Calls: XFlush()
Used in:  win/X11/winX.c
References Variables: toplevelwin/X11/winX.c
  x_initedwin/X11/winX.c

Global Function X11_yn_function()

char X11_yn_function ( const char* ques, const char* choices, char def )
Prototyped in: include/winX.h
Calls: eos()src/hacklib.c
  nh_XtPopdown()win/X11/winX.c
  nh_XtPopup()win/X11/winX.c
  panic()src/end.c
  positionpopup()win/X11/dialogs.c
  XSetWMProtocols(), XtCreateManagedWidget(), XtCreatePopupShell(), XtOverrideTranslations(), XtParseTranslationTable(), XtRealizeWidget(), XtSetValues(), display_message_window(), sprintf(), strchr(), strcpy(), strlen(), x_event()
Used in:  win/X11/winX.c
References Functions: yn_key()win/X11/winX.c
References Variables: WIN_MESSAGEsrc/decl.c
  appResourceswin/X11/winX.c
  input_funcwin/X11/winX.c
  toplevelwin/X11/winX.c
  window_listwin/X11/winX.c
  wm_delete_windowwin/X11/winX.c
  yn_choiceswin/X11/winX.c
  yn_defwin/X11/winX.c
  yn_esc_mapwin/X11/winX.c
  yn_getting_numwin/X11/winX.c
  yn_labelwin/X11/winX.c
  yn_popupwin/X11/winX.c
  yn_returnwin/X11/winX.c
  yn_translationswin/X11/winX.c

Global Function find_widget()

struct xwindow* find_widget ( Widget w )
Prototyped in: include/winX.h
Calls: panic()src/end.c
References Variables: window_listwin/X11/winX.c

Global Function key_event_to_char()

char key_event_to_char ( XKeyEvent* key )
Prototyped in: include/winX.h
Calls: XLookupString()
Called by: yn_key()win/X11/winX.c

Global Function msgkey()

void msgkey ( Widget w, XtPointer data, XEvent* event )
Prototyped in: include/winX.h
Calls: map_input()
Used in: init_standard_windows()win/X11/winX.c
References Variables: WIN_MAPsrc/decl.c
  window_listwin/X11/winX.c

Global Function nhApproxColor()

Boolean nhApproxColor ( Screen* screen, Colormap colormap, char* str, XColor* color )
Prototyped in: include/winX.h
Calls: XAllocColor(), XParseColor(), XQueryColors(), XtCalloc()
Called by: nhCvtStringToPixel()win/X11/winX.c

Global Function nhCvtStringToPixel()

Boolean nhCvtStringToPixel ( Display* dpy, XrmValuePtr args, Cardinal* num_args, XrmValuePtr fromVal, XrmValuePtr toVal, XtPointer* closure_ret )
Calls: nhApproxColor()win/X11/winX.c
  strncmpi()src/hacklib.c
  XAllocColor(), XAllocNamedColor(), XLookupColor(), XParseColor(), XtAppWarningMsg(), XtCvtStringToPixel(), XtDisplayToApplicationContext()
Used in: X11_init_nhwindows()win/X11/winX.c

Global Function nh_XtPopdown()

void nh_XtPopdown ( Widget w )
Prototyped in: include/winX.h
Calls: XtPopdown(), XtSetKeyboardFocus()
Called by: X11_yn_function()win/X11/winX.c
  abort_button()win/X11/winX.c
  askname_delete()win/X11/winX.c
  askname_done()win/X11/winX.c
  delete_file()win/X11/winX.c
  dismiss_file()win/X11/winX.c
  done_button()win/X11/winX.c
  getline_delete()win/X11/winX.c
References Variables: appResourceswin/X11/winX.c
  toplevelwin/X11/winX.c

Global Function nh_XtPopup()

void nh_XtPopup ( Widget w, int g, Widget childwid )
Prototyped in: include/winX.h
Calls: XSetWMProtocols(), XtPopup(), XtSetKeyboardFocus()
Called by: X11_askname()win/X11/winX.c
  X11_display_file()win/X11/winX.c
  X11_display_nhwindow()win/X11/winX.c
  X11_getlin()win/X11/winX.c
  X11_yn_function()win/X11/winX.c
References Variables: appResourceswin/X11/winX.c
  toplevelwin/X11/winX.c
  wm_delete_windowwin/X11/winX.c

Global Function nh_keyscroll()

void nh_keyscroll ( Widget viewport, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: include/winX.h
Calls: XtCallCallbacks(), XtGetValues(), XtNameToWidget(), atoi()
Used in:  win/X11/winX.c

Global Function win_X11_init()

void win_X11_init ( void )
Prototyped in: include/winX.h

Local Function X11_hangup()

static void X11_hangup ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: hangup()src/save.c
Used in:  win/X11/winX.c

Local Function abort_button()

static void abort_button ( Widget w, XtPointer client_data, XtPointer call_data )
Calls: nh_XtPopdown()win/X11/winX.c
  strcpy()
Used in: X11_getlin()win/X11/winX.c
References Variables: getline_inputwin/X11/winX.c
  exit_x_event

Local Function askname_delete()

static void askname_delete ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: nh_XtPopdown()win/X11/winX.c
  strcpy()
Used in:  win/X11/winX.c
References Variables: plnamesrc/decl.c
  exit_x_event

Local Function askname_done()

static void askname_done ( Widget w, XtPointer client_data, XtPointer call_data )
Calls: GetDialogResponse()win/X11/dialogs.c
  X11_nhbell()win/X11/winX.c
  nh_XtPopdown()win/X11/winX.c
  XtFree(), strlen(), strncpy()
Used in: X11_askname()win/X11/winX.c
References Variables: plnamesrc/decl.c
  exit_x_event

Local Function d_timeout()

static void d_timeout ( XtPointer client_data, XtIntervalId* id )
Calls: XSendEvent()
Used in: X11_delay_output()win/X11/winX.c
References Variables: WIN_MAPsrc/decl.c
  window_listwin/X11/winX.c

Local Function delete_file()

static void delete_file ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: nh_XtPopdown()win/X11/winX.c
  XtDestroyWidget()
Used in:  win/X11/winX.c

Local Function dismiss_file()

static void dismiss_file ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: nh_XtPopdown()win/X11/winX.c
  XtDestroyWidget()
Used in:  win/X11/winX.c

Local Function done_button()

static void done_button ( Widget w, XtPointer client_data, XtPointer call_data )
Calls: GetDialogResponse()win/X11/dialogs.c
  nh_XtPopdown()win/X11/winX.c
  XtFree(), strcpy()
Used in: X11_getlin()win/X11/winX.c
References Variables: getline_inputwin/X11/winX.c
  exit_x_event

Local Function find_free_window()

static winid find_free_window ( void )
Calls: panic()src/end.c
Called by: X11_create_nhwindow()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
References Variables: window_listwin/X11/winX.c

Local Function getline_delete()

static void getline_delete ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: nh_XtPopdown()win/X11/winX.c
  strcpy()
Used in:  win/X11/winX.c
References Variables: getline_inputwin/X11/winX.c
  exit_x_event

Local Function init_standard_windows()

static void init_standard_windows ( void )
Prototyped in: win/X11/winX.c
Calls: find_free_window()win/X11/winX.c
  XInternAtom(), XMoveWindow(), XSetWMProtocols(), XtAddEventHandler(), XtAppSetErrorHandler(), XtCreateManagedWidget(), XtGetValues(), XtParseTranslationTable(), XtRealizeWidget(), XtSetValues(), create_map_window(), create_message_window(), create_status_window(), null_out_status(), post_process_tiles(), set_map_size(), set_message_slider()
Called by: X11_init_nhwindows()win/X11/winX.c
References Functions: hangup()src/save.c
  msgkey()win/X11/winX.c
  win_visible()win/X11/winX.c
References Variables: WIN_MESSAGEsrc/decl.c
  appResourceswin/X11/winX.c
  app_contextwin/X11/winX.c
  iflagssrc/decl.c
  map_winwin/X11/winX.c
  message_winwin/X11/winX.c
  status_winwin/X11/winX.c
  toplevelwin/X11/winX.c
  window_listwin/X11/winX.c
  wm_delete_windowwin/X11/winX.c
  yn_labelwin/X11/winX.c
  yn_translationswin/X11/winX.c

Local Function input_event()

static int input_event ( int exit_condition )
Prototyped in: win/X11/winX.c
Calls: check_cursor_visibility(), check_turn_events(), set_last_pause(), x_event()
Called by: X11_nh_poskey()win/X11/winX.c
  X11_nhgetch()win/X11/winX.c
References Variables: WIN_MAPsrc/decl.c
  WIN_MESSAGEsrc/decl.c
  WIN_STATUSsrc/decl.c
  window_listwin/X11/winX.c

Local Function nhFreePixel()

static void nhFreePixel ( XtAppContext app, XrmValuePtr toVal, XtPointer closure, XrmValuePtr args, Cardinal* num_args )
Calls: XFreeColors(), XtAppWarningMsg()
Used in: X11_init_nhwindows()win/X11/winX.c

Local Function win_visible()

static void win_visible ( Widget w, XtPointer data, XEvent* event, Boolean* flag )
Prototyped in: win/X11/winX.c
Calls: XSetInputFocus(), XtRemoveEventHandler()
Used in: init_standard_windows()win/X11/winX.c
  win_visible()win/X11/winX.c
References Functions: win_visible()win/X11/winX.c
References Variables: toplevelwin/X11/winX.c

Local Function yn_delete()

static void yn_delete ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Used in:  win/X11/winX.c
References Variables: yn_choiceswin/X11/winX.c
  yn_esc_mapwin/X11/winX.c
  yn_getting_numwin/X11/winX.c
  yn_returnwin/X11/winX.c
  exit_x_event

Local Function yn_key()

static void yn_key ( Widget w, XEvent* event, String* params, Cardinal* num_params )
Prototyped in: win/X11/winX.c
Calls: X11_nhbell()win/X11/winX.c
  digit()src/hacklib.c
  key_event_to_char()win/X11/winX.c
  lowc()src/hacklib.c
  map_input(), strchr()
Used in:  win/X11/winX.c
  X11_yn_function()win/X11/winX.c
References Variables: appResourceswin/X11/winX.c
  input_funcwin/X11/winX.c
  yn_choiceswin/X11/winX.c
  yn_defwin/X11/winX.c
  yn_esc_mapwin/X11/winX.c
  yn_getting_numwin/X11/winX.c
  yn_ndigitswin/X11/winX.c
  yn_numbersrc/decl.c
  yn_quitcharswin/X11/winX.c
  yn_returnwin/X11/winX.c
  yn_valwin/X11/winX.c
  exit_x_event