Class box represents a simple rectangle. It is the
simples graphical
object of PCE.
Boxes may have rounded corners (see box->radius);
their line may have some
graphical->texture
(dash-pattern) and their inside may be file (see box->fill).
<-fill,
this pattern is repeated over the entire area of the box. By default,
box<-fill_offset
is @nil and
the origin of the pattern is the origin of the window. By setting box<-fill_offset
to a point, the pattern's origin starts at the specified location
relative to the X,Y of the box.
A typical usage for this method is to make neat-looking bar of a
barchart using a gradient fill-pattern and setting box<-fill_offset
to point(0,0).
|{foreground,background}*<-fill,
this pattern is repeated over the interior of the box. If a colour
object is specified, the box is filled using a solid colour and finally
if the initial value @nil
is used the box is transparent. The reserved names foreground and
background use the current foreground and background colours from the
context.
See also box<-fill_offset.
Defaults: @nil (transparent)
<->radius.
A value of 0 implies square corners.
Defaults: 0 (not rounded)