X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Finclude%2Fgrob.hh;h=9ff7613561f3b92b62bc88fc4641c00d9a7d8df7;hb=a1f9375c70400bc4820921bd2ebbbb387a7dcf98;hp=c66c58f2ddddb2ce7cc6b8bd9c80aa5e13be4fc4;hpb=16cb456cabf477f6d398ff731aa0f10b60913394;p=lilypond.git diff --git a/lily/include/grob.hh b/lily/include/grob.hh index c66c58f2dd..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)); @@ -80,15 +80,12 @@ public: SCM get_property_alist_chain (SCM) const; SCM internal_get_property (SCM symbol) const; SCM internal_get_property_data (SCM symbol) const; + SCM internal_get_non_callback_marker_property_data (SCM symbol) const; SCM internal_get_object (SCM symbol) const; void internal_set_object (SCM sym, SCM val); void internal_del_property (SCM symbol); - -#ifndef NDEBUG - void internal_set_property (SCM sym, SCM val, char const *file, int line, char const *fun); -#else + void instrumented_set_property (SCM, SCM, char const*, int, char const*); void internal_set_property (SCM sym, SCM val); -#endif /* messages */ void warning (string) const; @@ -121,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 */ @@ -130,7 +127,8 @@ public: Grob *get_parent (Axis a) const; void fixup_refpoint (); - virtual Interval_t spanned_rank_iv (); + virtual Interval_t spanned_rank_interval () const; + bool check_cross_staff (Grob *common); }; /* smob utilities */ @@ -149,9 +147,12 @@ 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); SCM call_pure_function (SCM unpure, SCM args, int start, int end); +void set_nested_property (Grob *, SCM property_path, SCM value); + #endif /* GROB_HH */