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.

-- 
Han-Wen Nienhuys - [EMAIL PROTECTED]
LilyPond Software Design - http://www.lilypond-design.com



_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to