Description
Straight line segment connecting two points. A line may have a
line->pen (thickness) and a graphical->texture
(dash-pattern). A line may have
joint->arrows
on both sides, see class joint
and class arrow for
attaching arrows to a line.
Bugs:
There are no provisions to display a label in a line. In the application-area of PCE, this would be a useful extension.
<-end
<-end_x
<-end_x
-first_arrow @see class arrow->arrows.
A default line has line->pen: 1 and graphical->texture:
none.<-x, <-y towards <-x + <-width, <-y + <-height
->start
from the first X-Y couple and line->end
from the second. Any default value leaves the corresponding line
parameter unchanged. See also graphical->set.
-second_arrow @see class arrow<-end
<-start_x
<-start_x
|point|event,
segment=[bool] -> intIf the argument is an event
object, act as above using the position of the event in the coordinate
space of the graphical<-device.
If the argument is a graphical
objects, it invokes area<-distance
using the areas of both graphicals.
See also graphical->in_event_area.
<-width and graphical<-height
but using line<-start
and line<-end.
<-start
and line<-end.
See also point<-distance.