On Mon, 18 Apr 2005 01:46:37 +0200 Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote:
> Op ma, 18-04-2005 te 00:49 -0300, schreef Jonatan Liljedahl: > > On Sun, 17 Apr 2005 23:22:38 +0200 > > Han-Wen Nienhuys <[EMAIL PROTECTED]> wrote: > > > > > >+ static Stencil make_arrow (Offset &from, Offset &to, int dir, > > > >Real length, Real width); > > > > > > don't use & . If you want to modify, use * . Use const& for big > > > structures. In this case, just copy the arguments. > > > > I forgot to say: I don't know if you noticed, but I need to shorten > > the line a bit to prevent it sticking out of the arrowhead. (The tip > > of the arrow is sharp while the end of the line is linethickness > > wide). So I need to modify the from and to offsets so that they are > > shortened when they reach the make_line() calls later on. I don't > > understand what you mean by copying the arguments... > > Use Lookup::round_filled_polygon to get rounded corners on the arrow > heads. That is the function I am using. But the line sticks out of the arrow anyhow; the line needs to be shortened! This means that I need access to the Offsets that draws the line, and that's why I need to use the call-by-reference arguments. /Jonatan -=( http://kymatica.com )=- _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-devel