summaryrefslogtreecommitdiff
path: root/src/termhooks.h
diff options
context:
space:
mode:
authorAlexander Gramiak <agrambot@gmail.com>2019-04-13 09:40:03 -0600
committerAlexander Gramiak <agrambot@gmail.com>2019-04-13 20:34:09 -0600
commit09fd8e70a0a6739cbe94c9925ab938456b25b479 (patch)
tree3308528582bf796d7cdb19b68caf85533f4bbfae /src/termhooks.h
parent2ca8409b032298ac16fd2fe02e7ebaca97d0f0fc (diff)
downloademacs-09fd8e70a0a6739cbe94c9925ab938456b25b479.tar.gz
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.
Diffstat (limited to 'src/termhooks.h')
-rw-r--r--src/termhooks.h29
1 files changed, 29 insertions, 0 deletions
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