| [ << Backend ] | [Top][Contents][Index] | [ Scheme functions >> ] |
[ < segno-mark-interface ] | [ Up: Graphical Object Interfaces ] | [ semi-tie-column-interface > ] |
3.2.127 self-alignment-interface
Position this object on itself and/or on its parent. To this end, the following functions are provided:
ly:self-alignment-interface::x-aligned-on-selfly:self-alignment-interface::y-aligned-on-selfAlign self on reference point, using
self-alignment-Xandself-alignment-Y, respectively.ly:self-alignment-interface::aligned-on-x-parently:self-alignment-interface::aligned-on-y-parentAlign reference point of self with the reference point of parent. The position of the own reference point is adjusted with
self-alignment-Xandself-alignment-Y, the position of the parent’s reference point withparent-alignment-Xandparent-alignment-Y, respectively.Function
ly:self-alignment-interface::aligned-on-x-parentlistens to the propertyX-alignment-extentof thePaperColumngrob, using it as a fallback width for parent alignment in case thePaperColumngrob does not contain note heads.ly:self-alignment-interface::centered-on-x-parently:self-alignment-interface::centered-on-y-parentShift the object so its own reference point is centered on the extent of the parent.
User-settable properties:
parent-alignment-X(number)Specify on which point of the parent the object is aligned. The value
-1means aligned on parent’s left edge,0on center, and1right edge, in X direction. Other numerical values may also be specified - the unit is half the parent’s width. If not a number, align on the parent’s reference point. If unset, the value fromself-alignment-Xproperty will be used.parent-alignment-Y(number)Like
parent-alignment-Xbut for the Y axis.self-alignment-X(number)Specify alignment of an object. The value
-1means left aligned,0centered, and1right-aligned in X direction. Other numerical values may also be specified - the unit is half the object width. If not a number, align on the object’s reference point.self-alignment-Y(number)Like
self-alignment-Xbut for the Y axis.X-align-on-main-noteheads(boolean)If true, this grob will ignore suspended noteheads when aligning itself on NoteColumn.
This grob interface is used in the following graphical object(s): AccidentalSuggestion, BarNumber, CaesuraScript, ClefModifier, CodaMark, CombineTextScript, DoublePercentRepeatCounter, DynamicText, Fingering, GridLine, Hairpin, HorizontalBracketText, InstrumentName, InstrumentSwitch, JumpScript, LyricRepeatCount, LyricText, MeasureCounter, MeasureSpanner, MetronomeMark, MultiMeasureRestNumber, MultiMeasureRestScript, MultiMeasureRestText, NoteName, PercentRepeatCounter, RehearsalMark, Script, SectionLabel, SegnoMark, SostenutoPedal, StemTremolo, StringNumber, StrokeFinger, SustainPedal, TextMark, TextScript and UnaCordaPedal.
| [ << Backend ] | [Top][Contents][Index] | [ Scheme functions >> ] |
[ < segno-mark-interface ] | [ Up: Graphical Object Interfaces ] | [ semi-tie-column-interface > ] |