[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: get current frame size?
From: |
Drew Adams |
Subject: |
RE: get current frame size? |
Date: |
Mon, 12 Oct 2015 06:24:15 -0700 (PDT) |
> - You can also calculate the frame parameters at run time using
> `display-pixel-width', `display-pixel-width'. But I don't think
> Emacs knows the sizes of window borders and title bar, so the approach
> is somewhat limited. At least can you use the above functions to test
> on which kind of screen you "are".
>
> - Drew Adam's "frame-cmds.el" has additional related stuff.
See also the code in `oneonone.el'. It uses `(x-display-pixel-width)'
(and `...-height'), called `display-pixel-width' in recent Emacs (both
names work).