Function: window-pixel-width

window-pixel-width is a function defined in window.c.

Signature

(window-pixel-width &optional WINDOW)

Documentation

Return the width of window WINDOW in pixels.

WINDOW must be a valid window and defaults to the selected one.

The return value includes the fringes and margins of WINDOW as well as any vertical dividers or scroll bars belonging to WINDOW. If WINDOW is an internal window, its pixel width is the width of the screen areas spanned by its children.

Source Code

// Defined in /usr/src/emacs/src/window.c
{
  return make_fixnum (decode_valid_window (window)->pixel_width);
}