X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=lily%2Finclude%2Fspacing-spanner.hh;h=3dace37510894ae0154fe1c0c2b908a78f0c762f;hb=768509751fd13f169829b61f022cc578609a7add;hp=c713c8755aa680dc4724f6a2959563b8fafb45b9;hpb=31568c504806f35aac420a394c9eab07abd9faa7;p=lilypond.git diff --git a/lily/include/spacing-spanner.hh b/lily/include/spacing-spanner.hh index c713c8755a..3dace37510 100644 --- a/lily/include/spacing-spanner.hh +++ b/lily/include/spacing-spanner.hh @@ -10,22 +10,9 @@ #define SPACING_SPANNER_HH #include "lily-proto.hh" -#include "lily-guile.hh" #include "rational.hh" - -struct Spacing_options -{ - bool packed_; - bool stretch_uniformly_; - bool float_nonmusical_columns_; - Rational global_shortest_; - Real increment_; - Real shortest_duration_space_; - - void init (); - void init_from_grob (Grob *me); - Real get_duration_space (Moment d, bool *) const; -}; +#include "std-vector.hh" +#include "grob-interface.hh" /* TODO: prune to public interface. @@ -43,7 +30,6 @@ public: static Real default_bar_spacing (Grob *, Grob *, Grob *, Moment); static Real note_spacing (Grob *, Grob *, Grob *, Spacing_options const *, bool *); static Real get_duration_space (Moment dur, Spacing_options const *, bool *); - static Rational find_shortest (Grob *, vector const &); static Rational effective_shortest_duration (Grob *me, vector const &all); static void breakable_column_spacing (Grob *, Item *l, Item *r, Spacing_options const *); static void prune_loose_columns (Grob *, vector *cols, Spacing_options const *); @@ -51,8 +37,11 @@ public: static void set_implicit_neighbor_columns (vector const &cols); static void generate_springs (Grob *me, vector const &cols, Spacing_options const *); static void musical_column_spacing (Grob *, Item *, Item *, Spacing_options const *); + static vector get_columns (Spanner *me); + DECLARE_SCHEME_CALLBACK (set_springs, (SCM)); - static bool has_interface (Grob *); + DECLARE_SCHEME_CALLBACK (calc_common_shortest_duration, (SCM)); + DECLARE_GROB_INTERFACE(); }; #endif /* SPACING_SPANNER_HH */