]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spacing-options.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / spacing-options.hh
1 /* 
2   spacing-options.hh -- declare Spacing_options
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 2006--2008 Han-Wen Nienhuys <hanwen@lilypond.org>
7   
8 */
9
10 #ifndef SPACING_OPTIONS_HH
11 #define SPACING_OPTIONS_HH
12
13 #include "lily-proto.hh"
14 #include "rational.hh"
15 #include "std-vector.hh"
16
17 /*
18   Various options for spacing. Usually inited from SpacingSpanner, but sometimes
19   from GraceSpacing.
20  */
21
22 struct Spacing_options
23 {
24   bool packed_;
25   bool stretch_uniformly_;
26   bool float_nonmusical_columns_;
27   bool float_grace_columns_;
28   Rational global_shortest_;
29   Real increment_;
30   Real shortest_duration_space_;
31   
32   Spacing_options();
33   void init_from_grob (Grob *me);
34   Real get_duration_space (Rational d) const;
35 };
36 #endif /* SPACING_OPTIONS_HH */