2 page-spacing-result.hh -- declare Page_spacing_result
4 source file of the GNU LilyPond music typesetter
6 (c) 2007--2009 Han-Wen Nienhuys <hanwen@lilypond.org>
10 #ifndef PAGE_SPACING_RESULT_HH
11 #define PAGE_SPACING_RESULT_HH
13 #include "std-vector.hh"
14 #include "lily-proto.hh"
16 // This enum is a bitfield: since we use one System_count_status
17 // to represent the system count of several pages simultaneously,
18 // it could be that one page has too many systems while another
22 SYSTEM_COUNT_TOO_MANY = 1,
23 SYSTEM_COUNT_TOO_FEW = 2
24 } System_count_status;
26 struct Page_spacing_result {
27 vector<vsize> systems_per_page_;
31 int system_count_status_;
33 Real average_force () const;
34 vsize page_count () const;
35 vsize system_count () const;
37 Page_spacing_result ();
40 #endif /* PAGE_SPACING_RESULT_HH */