summaryrefslogtreecommitdiff
path: root/devdocs/elisp/geometry.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/geometry.html
new repository
Diffstat (limited to 'devdocs/elisp/geometry.html')
-rw-r--r--devdocs/elisp/geometry.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/devdocs/elisp/geometry.html b/devdocs/elisp/geometry.html
new file mode 100644
index 00000000..cc5e64eb
--- /dev/null
+++ b/devdocs/elisp/geometry.html
@@ -0,0 +1,13 @@
+ <h4 class="subsection">Geometry</h4> <p>Here’s how to examine the data in an X-style window geometry specification: </p> <dl> <dt id="x-parse-geometry">Function: <strong>x-parse-geometry</strong> <em>geom</em>
+</dt> <dd>
+ <p>The function <code>x-parse-geometry</code> converts a standard X window geometry string to an alist that you can use as part of the argument to <code>make-frame</code>. </p> <p>The alist describes which parameters were specified in <var>geom</var>, and gives the values specified for them. Each element looks like <code>(<var>parameter</var> . <var>value</var>)</code>. The possible <var>parameter</var> values are <code>left</code>, <code>top</code>, <code>width</code>, and <code>height</code>. </p> <p>For the size parameters, the value must be an integer. The position parameter names <code>left</code> and <code>top</code> are not totally accurate, because some values indicate the position of the right or bottom edges instead. The <var>value</var> possibilities for the position parameters are: an integer, a list <code>(+ <var>pos</var>)</code>, or a list <code>(- <var>pos</var>)</code>; as previously described (see <a href="position-parameters">Position Parameters</a>). </p> <p>Here is an example: </p> <div class="example"> <pre class="example">(x-parse-geometry "35x70+0-0")
+ ⇒ ((height . 70) (width . 35)
+ (top - 0) (left . 0))
+</pre>
+</div> </dd>
+</dl><div class="_attribution">
+ <p class="_attribution-p">
+ Copyright &copy; 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br>
+ <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Geometry.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Geometry.html</a>
+ </p>
+</div>