]> git.donarmstrong.com Git - lilypond.git/commit
Scheme function to draw lines based on grob layout
authorDavid Nalesnik <david.nalesnik@gmail.com>
Wed, 26 Aug 2015 14:46:07 +0000 (09:46 -0500)
committerDavid Nalesnik <david.nalesnik@gmail.com>
Wed, 2 Sep 2015 12:24:31 +0000 (07:24 -0500)
commit5eabb1db205318d9c3acc1f2eddd4aedd6547084
tree9bfdcb32928490930702c7c6ee55b6a38d0dff5c
parent71d9103ad7989e9d16905ed2286d20f05a231e6c
Scheme function to draw lines based on grob layout

A number of C++ stencil callbacks use Line_interface::line to draw
lines based on line-interface properties defining a particular grob.
This allows control of aspects such as line style (based on the setting
of Grob.style) and fine-tuning of dashed lines through dash-fraction
and dash-period.

This patch gives access to Line_interface::line in Scheme through the
callback ly:line-interface::line.  (The simpler name ly:line was ruled
out in an effort to distinguish it from other functions such as
ly:bracket and ly:circle which do not take a grob argument.)  Users
will be able to create custom stencils with more functionality
(including rewriting certain C++ callbacks--such as Hairpin::print--to
allow for easy modifications without loss of capability.)
lily/line-interface-scheme.cc [new file with mode: 0644]