A subclass of pinboard-object which draws a labelled line.
A valid color specification, as defined for the graphics-state parameter foreground .
A valid color specification, as defined for the graphics-state parameter
foreground
, or the keyword :background
, or nil
.
A subclass of pinboard-object which displays a line and draws a label in the middle of it.
Note that the label text is inherited from item.
text-foreground defines the color of the label text.
text-background
defines the background for the text, which is the color used to draw a filled rectangle in the area of the text before drawing the text. The value :background
means use the
background
of the pinboard-layout of the object. The value nil
means do not draw a background rectangle. The default value of
text-background
is :background
.
For a description of color specifications, see Color specs.
(capi:contain
(make-instance
'capi:pinboard-layout
:description
(list (make-instance
'capi:labelled-line-pinboard-object
:text "Labelled Line"
:start-x 10 :start-y 10
:end-x 80 :end-y 60)
(make-instance
'capi:labelled-arrow-pinboard-object
:text "Labelled Arrow"
:start-x 10 :start-y 70
:end-x 80 :end-y 120
:head-direction :both))))
CAPI User Guide and Reference Manual (Unix version) - 3 Aug 2017