File: Direction.xml

package info (click to toggle)
fvwm 1%3A2.7.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,968 kB
  • sloc: ansic: 145,836; xml: 17,096; perl: 7,237; sh: 5,100; makefile: 1,101; yacc: 688; lex: 187; sed: 11
file content (52 lines) | stat: -rw-r--r-- 1,687 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?xml version="1.0" encoding="UTF-8" ?>
<!-- $Id$ -->
<!DOCTYPE part PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  "../docbook-xml/docbookx.dtd"
[
<!ENTITY % myents SYSTEM "../fvwm.ent" >
%myents;
]>


<section id='Direction'>
<title>Direction</title>

<cmdsynopsis>
	<command>Direction</command
	><arg choice='opt'>FromPointer</arg
	><arg choice='plain'
		><replaceable>direction</replaceable
	></arg
	><arg choice='opt'
		>(<replaceable>conditions</replaceable
	>)</arg
	><arg choice='plain'
		><replaceable>command</replaceable
	></arg>
</cmdsynopsis>

<para>Performs
<replaceable>command</replaceable>
(typically
<fvwmref cmd="Focus"/>)
on a window in the given direction which satisfies all
<replaceable>conditions</replaceable>.
Normally, the center of the currently focused window or the
context window in which the command was invoked is taken as the
starting point.  Lacking such a window, or when the
<fvwmopt cmd="Direction" opt="FromPointer"/>
option is given, the current position of the pointer is taken as
the starting point.  The
<replaceable>direction</replaceable>
may be one of "North", "Northeast", "East", "Southeast", "South",
"Southwest", "West", "Northwest" and "Center".  Which window
<emphasis remap='B'>Direction</emphasis>
selects depends on angle and distance between the center points of
the windows.  Closer windows are considered a better match than
those farther away.  The
<fvwmopt cmd="Direction" opt="Center"/>
direction simply selects the window closest to the starting point.
Returns -1 if an invalid direction was given.
See the <fvwmref sect="conditionals" opt="conditions" name="Conditions"/> section for a list of conditions.</para>

</section>