X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgrob.hh;h=9ff7613561f3b92b62bc88fc4641c00d9a7d8df7;hb=a1f9375c70400bc4820921bd2ebbbb387a7dcf98;hp=433ea7ec436a363bd3d40cab9ae70e8493b74c09;hpb=4d246c3598feaa9918d01faf4bb6614e60a5cbcf;p=lilypond.git diff --git a/lily/include/grob.hh b/lily/include/grob.hh index 433ea7ec43..9ff7613561 100644 --- a/lily/include/grob.hh +++ b/lily/include/grob.hh @@ -3,7 +3,7 @@ source file of the LilyPond music typesetter - (c) 1996--2007 Han-Wen Nienhuys + (c) 1996--2009 Han-Wen Nienhuys */ #ifndef GROB_HH @@ -54,8 +54,8 @@ public: friend SCM ly_grob_basic_properties (SCM); /* standard callbacks */ - DECLARE_SCHEME_CALLBACK(x_parent_positioning, (SCM)); - DECLARE_SCHEME_CALLBACK(y_parent_positioning, (SCM)); + DECLARE_SCHEME_CALLBACK (x_parent_positioning, (SCM)); + DECLARE_SCHEME_CALLBACK (y_parent_positioning, (SCM)); DECLARE_SCHEME_CALLBACK (stencil_height, (SCM smob)); DECLARE_SCHEME_CALLBACK (stencil_width, (SCM smob)); @@ -118,7 +118,7 @@ public: /* extents */ Interval extent (Grob *refpoint, Axis) const; void flush_extent_cache (Axis); - Interval pure_height (Grob *refpoint, int start_col, int end_col); + virtual Interval pure_height (Grob *refpoint, int start_col, int end_col); Interval maybe_pure_extent (Grob *refpoint, Axis, bool pure, int start, int end); /* refpoints */ @@ -128,6 +128,7 @@ public: void fixup_refpoint (); virtual Interval_t spanned_rank_interval () const; + bool check_cross_staff (Grob *common); }; /* smob utilities */ @@ -146,6 +147,7 @@ Interval robust_relative_extent (Grob *, Grob *, Axis); /* offset/extent callbacks. */ void add_offset_callback (Grob *g, SCM proc, Axis a); void chain_offset_callback (Grob *g, SCM proc, Axis a); +void chain_callback (Grob *g, SCM proc, SCM sym); SCM axis_offset_symbol (Axis a); SCM axis_parent_positioning (Axis a);