All Manuals > CAPI User Guide and Reference Manual > 21 CAPI Reference Entries

move-line Generic Function

Summary

Moves a line-pinboard-object.

Package

capi

Signature

move-line line-pinboard-object start-x start-y end-x end-y &key redisplay

Arguments
line-pinboard-object
An instance of line-pinboard-object or a subclass.
start-x
The x coordinate of the start of the line.
start-y
The y coordinate of the start of the line.
end-x
The x coordinate of the end of the line.
end-y
The y coordinate of the end of the line.
redisplay
A boolean.
Description

The generic function move-line moves line-pinboard-object to a new location with start and end points specified by start-x, start-y, end-x and end-y.

This automatically adjusts the geometry of the object, taking into account other constraints. Examples of such constraints are the label in a labelled-line-pinboard-object and the arrowhead in a arrow-pinboard-object.

The default value of redisplay is t, which means that the changed line is redrawn immediately. If you are moving many objects at the same time, it is useful to pass :redisplay nil.

See also

line-pinboard-object
line-pinboard-object-coordinates


CAPI User Guide and Reference Manual (Windows version) - 01 Dec 2021 19:33:57