]> git.donarmstrong.com Git - lilypond.git/commit
Replace XY-offset closures with aligned_on_parent where possible
authorJanek Warchoł <lemniskata.bernoullego@gmail.com>
Mon, 23 Jun 2014 21:04:26 +0000 (23:04 +0200)
committerJanek Warchoł <lemniskata.bernoullego@gmail.com>
Sat, 5 Jul 2014 21:09:29 +0000 (23:09 +0200)
commit1d765020f867995879c761f2c9351c9dc74f1df8
tree5e8854474c45257672b731814180aad029e34acf
parent09412c25cce3fdffce7cefe491cb3849ece0ae3e
Replace XY-offset closures with aligned_on_parent where possible

It doesn't make sense to specify placement using multiple added
callbacks or closures when we can use aligned_on_parent. What's
more, aligned_on_parent should expose more consistent interface
for the users - affected grobs should now behave similarly to
LyricTexts and DynamicTexts. For example, this

\relative c'' \context Voice {
  \compressFullBarRests
  \override MultiMeasureRestNumber.self-alignment-X = #RIGHT
  R1*100
}

will result in right edge of the MultiMeasureRestNumber being
aligned on the right edge of the MultiMeasureRest.

Affected grobs:
- AccidentalSuggestion
- ClefModifier
- DoublePercentRepeatCounter
- Fingering
- GridLine
- MultiMeasureRestNumber
- MultiMeasureRestText
- PercentRepeatCounter
- StemTremolo

Expected changes in output: none.
lily/fingering-engraver.cc
lily/include/self-alignment-interface.hh
lily/new-fingering-engraver.cc
lily/self-alignment-interface.cc
scm/define-grobs.scm