x-frame-geometry

x-frame-geometry is a built-in function in `C source code'.

(x-frame-geometry &optional FRAME)

Return geometric attributes of frame FRAME.

FRAME must be a live frame and defaults to the selected one.

The return value is an association list containing the following
elements (all size values are in pixels).

- `frame-outer-size' is a cons of the outer width and height of FRAME.
The outer size include the title bar and the external borders as well
as any menu and/or tool bar of frame.

- `border' is a cons of the horizontal and vertical width of FRAME's
external borders.

- `title-bar-height' is the height of the title bar of FRAME.

- `menu-bar-external' if `t' means the menu bar is external (not
included in the inner edges of FRAME).

- `menu-bar-size' is a cons of the width and height of the menu bar of
FRAME.

- `tool-bar-external' if `t' means the tool bar is external (not
included in the inner edges of FRAME).

- `tool-bar-side' tells tells on which side the tool bar on FRAME is and
can be one of `left', `top', `right' or `bottom'.

- `tool-bar-size' is a cons of the width and height of the tool bar of
FRAME.

- `frame-inner-size' is a cons of the inner width and height of FRAME.
This excludes FRAME's title bar and external border as well as any
external menu and/or tool bar.