window-size -- Return the size of the application window of WIN.


(window-size  #&optional win)


Return the size of the application window of win. win defaults to the window context in the usual way if not specified. The position is returned as a list of four numbers. The first two are the width and the height in pixels, the third and fourth are the width and height in resize units (e.g., characters for an xterm). See window-frame-size if you want the size of the frame window.

Implementation Notes

Module: Built-in Primitive

Defined in src/window.c at line 2719 (CVS log)