From 09fd8e70a0a6739cbe94c9925ab938456b25b479 Mon Sep 17 00:00:00 2001 From: Alexander Gramiak Date: Sat, 13 Apr 2019 09:40:03 -0600 Subject: Rename non-X x_* identifiers * src/image.c: Rename x_* procedures to image_* and gui_*. * src/frame.c: Rename x_* procedures to gui_*. * src/nsfns.c: * src/nsterm.m: Rename x_* procedures to ns_*. * src/w32fns.c: * src/w32term.c: Rename x_* procedures to w32_*. * src/termhooks.h (get_focus_frame, focus_frame_hook) (iconify_frame_hook, set_frame_alpha_hook) (set_new_font_hook, implicit_set_name_hook) (change_tool_bar_height_hook, set_scroll_bar_default_width_hook) (set_scroll_bar_default_height_hook): New terminal hooks. * src/dispextern.h (clear_under_internal_border): New RIF function pointer. --- src/termhooks.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'src/termhooks.h') diff --git a/src/termhooks.h b/src/termhooks.h index a92b981110d..58f8d6e4b5a 100644 --- a/src/termhooks.h +++ b/src/termhooks.h @@ -512,6 +512,12 @@ struct terminal Lisp_Object *y, Time *); + /* This hook is called to get the focus frame. */ + Lisp_Object (*get_focus_frame) (struct frame *f); + + /* This hook is called to shift frame focus. */ + void (*focus_frame_hook) (struct frame *f, bool noactivate); + /* When a frame's focus redirection is changed, this hook tells the window system code to re-decide where to put the highlight. Under X, this means that Emacs lies about where the focus is. */ @@ -534,6 +540,19 @@ struct terminal may do something OS dependent, like extended window manager hints on X11. */ void (*fullscreen_hook) (struct frame *f); + /* This hook is called to iconify the frame. */ + void (*iconify_frame_hook) (struct frame *f); + + /* This hook is called to set the frame's transparency. */ + void (*set_frame_alpha_hook) (struct frame *f); + + /* This hook is called to set a new font for the frame. */ + Lisp_Object (*set_new_font_hook) (struct frame *f, Lisp_Object font_object, + int fontset); + + void (*implicit_set_name_hook) (struct frame *f, Lisp_Object arg, + Lisp_Object oldval); + /* This hook is called to display menus. */ Lisp_Object (*menu_show_hook) (struct frame *f, int x, int y, int menuflags, Lisp_Object title, const char **error_name); @@ -542,6 +561,11 @@ struct terminal Lisp_Object (*popup_dialog_hook) (struct frame *f, Lisp_Object header, Lisp_Object contents); +#ifndef HAVE_EXT_TOOL_BAR + /* This hook is called to change the frame's (internal) tool-bar. */ + void (*change_tool_bar_height_hook) (struct frame *f, int height); +#endif + /* Scroll bar hooks. */ /* The representation of scroll bars is determined by the code which @@ -583,6 +607,11 @@ struct terminal int portion, int whole, int position); + /* Set the default scroll bar width on FRAME. */ + void (*x_set_scroll_bar_default_width) (struct frame *frame); + + /* Set the default scroll bar height on FRAME. */ + void (*x_set_scroll_bar_default_height) (struct frame *frame); /* The following three hooks are used when we're doing a thorough redisplay of the frame. We don't explicitly know which scroll bars -- cgit v1.2.1