(define-public (grob::is-live? grob)
(pair? (ly:grob-basic-properties grob)))
-(define-public (grob::x-parent-width grob)
- (ly:grob-property (ly:grob-parent grob X) 'X-extent))
-
(define-public (make-stencil-boxer thickness padding callback)
"Return function that adds a box around the grob passed as argument."
(lambda (grob)
the previous calculated offset value."
prev-offset)
+(define-public (outside-staff::pure-Y-offset grob start end)
+ "Initial vertical placement of items such as tempo and
+ rehearsal marks, for use in note-spacing."
+ (* (+ (ly:staff-symbol-staff-radius grob)
+ (ly:grob-property grob 'outside-staff-padding 0.0)
+ 1.0)
+ (ly:grob-property grob 'direction CENTER)))
+
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;