]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spacing-spanner.hh
release: 1.3.55
[lilypond.git] / lily / include / spacing-spanner.hh
1 /*   
2   spacing-spanner.hh -- declare Spacing_spanner
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef SPACING_SPANNER_HH
11 #define SPACING_SPANNER_HH
12
13 #include "spanner.hh"
14
15 class Spacing_spanner : public Spanner
16 {
17 public:
18   Spacing_spanner (SCM);
19
20   VIRTUAL_COPY_CONS(Score_element);
21   Array<Spring> do_measure (Link_array<Paper_column>) const;
22
23 protected:
24   virtual  Array<Spring> get_springs () const;
25
26   Real stem_dir_correction (Paper_column*,Paper_column*)  const;
27   Real default_bar_spacing (Paper_column*,Paper_column*,Moment)  const;
28   Real note_spacing (Paper_column*,Paper_column*,Moment)  const;
29   Real get_duration_space (Moment dur, Moment shortest) const;
30 };
31
32 #endif /* SPACING_SPANNER_HH */
33