Rectangles define a region of the display. A rectangle is a list of
(left top right bottom [weight]).
top are the
y coordinates of the upper left
bottom are the coordinates for the lower
weight is an integer. The bulk of the rectangle
management functions are in sawfish.wm.util.rects.
The x-axis value of the left side of the rectangle. Equivalent to
The y-axis value of the top of the rectangle. Equivalent to
The x-axis value of the right side of the rectangle. Equivalent to
The y-axis value of the bottom of the rectangle. Equivalent to
Check whether the rectangle
r is wholly or partially contained in
by. Returns one of the symbols
Return a list of rectangles whose union is the part of rectangle
r not contained in rectangle
tail is given,
the result is prepended to it.
The two lists of integers
y-points define a
rectangular grid. Return the complete list of rectangles formed by the
intersections of the grid.
pred is defined it is called for each rectangle and only those
for which it returns
t are added to the returned list.
y-points are both sorted
Returns a list of rectangle objects representing the list of window
weight-fun is defined, it is a function to call on each window
to return the weight for that window. If not defined, the window’s
weight property is used instead.
Given a list of rectangles
rects return a cons cell
(x-points . y-points) defining the grid they represent.
with-root is non-nil, then add the root window boundaries to
Returns the area of the specified rectangle.
Return the rectangle object with origin
point and dimensions
Return a list of four cons cells representing the coordinates of the
corners of the rectangle
Returns a cons cell of the (approximate, to the nearest integer)
coordinates of the center of the rectangle
The same as
rectangle-center except that the rectangle is
specified via the x,y coordinates
point and the dimensions
Gives the smallest rectangle containing both
rect2. The weight of the resulting rectangle is the weight of
Gives the intersection of the two rectangles
rect2. The weigth of the resultant rectangle is the weight of
nil if there the two rectangles do not
a-2 indicates one line segment and
b-2 indicates another. Returns the overlap between the two line
Returns the overlap between two rectangles, one with dimensions
dims and upper-left corner at
point; the other is defined
rect-2d-overlap, except that the rectangles are
Returns the total area of the overlap between a rectangle defined by
point, and the list of rectangles
when placed at
inner is completely within the boundaries of
rect is completely inside the screen
Returns the number of screen heads that the rectangle
These functions are found in sawfish.wm.viewport:
rect is entirely inside the screen boundaries
for some viewport, regardless of whether it is the current viewport, or
even if the viewport currently exists. If
viewport is specified
check only against that viewport.
rect is entirely within some head on some
head is provided
rect must be within that
head on some viewport.