Function: frame-native-height

frame-native-height is a function defined in frame.c.

Signature

(frame-native-height &optional FRAME)

Documentation

Return FRAME's native height in pixels.

If FRAME is omitted or nil, the selected frame is used. The exact value of the result depends on the window-system and toolkit in use:

In the Gtk+ and NS versions, it includes only any window (including the minibuffer or echo area), mode line, and header line. It does not include the tool bar or menu bar. With other graphical versions, it may also include the tool bar and the menu bar.

If you're interested only in the height of the text portion of the frame, see frame-text-height instead.

For a text terminal, it includes the menu bar. In this case, the result is really in characters rather than pixels (i.e., is identical to frame-height).

View in manual

Aliases

frame-pixel-height

Source Code

// Defined in /usr/src/emacs/src/frame.c
{
  struct frame *f = decode_any_frame (frame);

#ifdef HAVE_WINDOW_SYSTEM
  if (FRAME_WINDOW_P (f))
    return make_fixnum (FRAME_PIXEL_HEIGHT (f));
  else
#endif
    return make_fixnum (FRAME_TOTAL_LINES (f));
}