Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1303)

Issue 260450043: Scheme function to draw lines based on grob layout

Can't Edit
Can't Publish+Mail
Start Review
Created:
8 years, 8 months ago by david.nalesnik
Modified:
8 years, 8 months ago
CC:
lilypond-devel_gnu.com
Visibility:
Public.

Description

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.)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -11 lines) Patch
A + lily/line-interface-scheme.cc View 1 chunk +19 lines, -11 lines 0 comments Download

Messages

Total messages: 6
david.nalesnik
Please review. Thanks! Here's a usage example: \version "2.19.26" { \override Hairpin.stencil = #(lambda (grob) ...
8 years, 8 months ago (2015-08-26 17:39:55 UTC) #1
pkx166h
Passes make, make check and a full make doc. PATCH_REVIEW
8 years, 8 months ago (2015-08-27 07:56:09 UTC) #2
pkx166h
Patch on countdown for Sept 2nd PATCH_COUNTDOWN
8 years, 8 months ago (2015-08-29 07:47:04 UTC) #3
thomasmorley651
Can't review C++ and right now I don't have a good idea, which possibilities are ...
8 years, 8 months ago (2015-08-29 10:09:19 UTC) #4
david.nalesnik
On 2015/08/29 10:09:19, thomasmorley651 wrote: > Can't review C++ and right now I don't have ...
8 years, 8 months ago (2015-08-29 13:49:29 UTC) #5
thomasmorley651
8 years, 8 months ago (2015-08-29 13:57:38 UTC) #6
On 2015/08/29 13:49:29, david.nalesnik wrote:
> On 2015/08/29 10:09:19, thomasmorley651 wrote:
> > Can't review C++ and right now I don't have a good idea, which possibilities
> are
> > offered here.
> 
> I hoped that the test example provided in message #1 would give a good idea of
> the possibilities :(  

Aaargh, I missed this :((
Just noticed James PATCHES-notification and had a quick look in the code, but
not in the already sent messages.
And yes, it gives me an idea.
Sorry for the noise.

> 
> Basically, you can draw a line modified by any of the properties in
> line-interface, taken from a grob with that interface.  (So the line can be
> customized, like you can make Hairpin and TupletBracket grobs dashed or
> whatever.)
>  
> > 
> > I think it would be helpful to put up an example. Maybe in snippets or
changes
> > or in regtests. What do you think?
> 
> Snippets--possibly, but maybe in another patch?

Agreeing with both: in snippets/follow up
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b