]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/spacing-options.hh
Notes or rests that fill an entire measure are preceded by some more space.
[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 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 struct Spacing_options
18 {
19   bool packed_;
20   bool stretch_uniformly_;
21   bool float_nonmusical_columns_;
22   bool float_grace_columns_;
23   Rational global_shortest_;
24   Real increment_;
25   Real shortest_duration_space_;
26   vector<Grob*> columns_;
27   
28   Spacing_options();
29   void init_from_grob (Grob *me);
30   Real get_duration_space (Rational d, bool *) const;
31 };
32 #endif /* SPACING_OPTIONS_HH */