File win/X11/winmesg.c


Included Files


Preprocessor definitions

#define PRESERVE_NO_SYSV

Local Variables

mesg_translations
static char mesg_translations[]
Used in: create_message_window()

Global Function append_message()

void append_message ( struct xwindow* wp, const char* str )
Prototyped in: include/winX.h
Calls: add_line()win/X11/winmesg.c
  split()win/X11/winmesg.c
  strcpy()
Called by: X11_putstr()win/X11/winX.c

Global Function create_message_window()

void create_message_window ( struct xwindow* wp, boolean create_popup, Widget parent )
Prototyped in: include/winX.h
Calls: alloc()src/alloc.c
  get_gc()win/X11/winmesg.c
  set_circle_buf()win/X11/winmesg.c
  XSetWMProtocols(), XtAddCallback(), XtCreateManagedWidget(), XtCreatePopupShell(), XtDisplay(), XtGetValues(), XtParseTranslationTable(), XtRealizeWidget(), XtSetValues(), XtWindow()
Called by: X11_create_nhwindow()win/X11/winX.c
  init_standard_windows()win/X11/winX.c
References Functions: mesg_exposed()win/X11/winmesg.c
  mesg_resized()win/X11/winmesg.c
References Variables: appResourceswin/X11/winX.c
  iflagssrc/decl.c
  mesg_translationswin/X11/winmesg.c
  toplevelwin/X11/winX.c
  windowWidgetClasswin/X11/Window.c
  wm_delete_windowwin/X11/winX.c

Global Function destroy_message_window()

void destroy_message_window ( struct xwindow* wp )
Prototyped in: include/winX.h
Calls: nh_XtPopdown()win/X11/winX.c
  set_circle_buf()win/X11/winmesg.c
  XtDestroyWidget(), XtRemoveCallback(), free()
Called by: X11_destroy_nhwindow()win/X11/winX.c
References Functions: mesg_exposed()win/X11/winmesg.c

Global Function display_message_window()

void display_message_window ( struct xwindow* wp )
Prototyped in: include/winX.h
Calls: redraw_message_window()win/X11/winmesg.c
Called by: X11_display_nhwindow()win/X11/winX.c
  X11_mark_synch()win/X11/winX.c
  X11_yn_function()win/X11/winX.c

Global Function set_last_pause()

void set_last_pause ( struct xwindow* wp )
Prototyped in: include/winX.h
Called by: input_event()win/X11/winX.c

Global Function set_message_slider()

void set_message_slider ( struct xwindow* wp )
Prototyped in: include/winX.h
Calls: XtCallCallbacks(), XtNameToWidget(), XtParent()
Called by: init_standard_windows()win/X11/winX.c
  mesg_check_size_change()win/X11/winmesg.c

Local Function add_line()

static void add_line ( struct mesg_info_t* mesg_info, const char* s )
Prototyped in: win/X11/winmesg.c
Calls: alloc()src/alloc.c
  free(), strcpy(), strlen()
Called by: append_message()win/X11/winmesg.c

Local Function get_gc()

static void get_gc ( Widget w, struct mesg_info_t* mesg_info )
Prototyped in: win/X11/winmesg.c
Calls: WindowFont()win/X11/Window.c
  XtGetGC(), XtGetValues()
Called by: create_message_window()win/X11/winmesg.c

Local Function get_previous()

static struct line_element* get_previous ( struct line_element* mark )
Prototyped in: win/X11/winmesg.c
Called by: set_circle_buf()win/X11/winmesg.c

Local Function mesg_check_size_change()

static void mesg_check_size_change ( struct xwindow* wp )
Prototyped in: win/X11/winmesg.c
Calls: set_message_slider()win/X11/winmesg.c
  XtGetValues(), XtParent()
Called by: mesg_exposed()win/X11/winmesg.c

Local Function mesg_exposed()

static void mesg_exposed ( Widget w, XtPointer client_data, XtPointer widget_data )
Prototyped in: win/X11/winmesg.c
Calls: find_widget()win/X11/winX.c
  mesg_check_size_change()win/X11/winmesg.c
  redraw_message_window()win/X11/winmesg.c
  XCheckTypedWindowEvent(), XtDisplay(), XtIsRealized(), XtWindow()
Used in: create_message_window()win/X11/winmesg.c
  destroy_message_window()win/X11/winmesg.c

Local Function mesg_resized()

static void mesg_resized ( Widget w, XtPointer client_data, XtPointer call_data )
Prototyped in: win/X11/winmesg.c
Calls: find_widget()win/X11/winX.c
  set_circle_buf()win/X11/winmesg.c
  XtGetValues()
Used in: create_message_window()win/X11/winmesg.c

Local Function redraw_message_window()

static void redraw_message_window ( struct xwindow* wp )
Prototyped in: win/X11/winmesg.c
Calls: XClearWindow(), XDrawLine(), XDrawString(), XtDisplay(), XtWindow()
Called by: display_message_window()win/X11/winmesg.c
  mesg_exposed()win/X11/winmesg.c
References Variables: appResourceswin/X11/winX.c

Local Function set_circle_buf()

static void set_circle_buf ( struct mesg_info_t* mesg_info, int count )
Prototyped in: win/X11/winmesg.c
Calls: alloc()src/alloc.c
  get_previous()win/X11/winmesg.c
  panic()src/end.c
  free()
Called by: create_message_window()win/X11/winmesg.c
  destroy_message_window()win/X11/winmesg.c
  mesg_resized()win/X11/winmesg.c

Local Function split()

static char* split ( char* s, XFontStruct* fs, Dimension pixel_width )
Prototyped in: win/X11/winmesg.c
Calls: eos()src/hacklib.c
  panic()src/end.c
  XTextWidth(), strlen()
Called by: append_message()win/X11/winmesg.c