]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/span-bar.hh
9b942fada0974256aba43f60133d929e82584410
[lilypond.git] / lily / include / span-bar.hh
1 /*
2   span-bar.hh -- declare Span_bar
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef SPAN_BAR_HH
11 #define SPAN_BAR_HH
12
13 #include "lily-guile.hh"
14 #include "lily-proto.hh"
15
16 /**
17    This is a barline that is spanned across other bar lines.  This is
18    the implementation of the long barlines that occur in orchestral
19    score and other multi-staff music.
20
21    TODO: Is this usable for other stuff besides barlines? We only have
22    to span a Score_element.  Perhaps this can be used for large time
23    sigs?
24 */
25 class Span_bar
26 {
27 public:
28   static void set_interface (Score_element*);
29   static bool has_interface (Score_element*);  
30   static Interval get_spanned_interval (Score_element*);
31   static void add_bar (Score_element*,Score_element*);
32   static void evaluate_glyph (Score_element*);
33   static void evaluate_empty (Score_element*);
34   DECLARE_SCHEME_CALLBACK(width_callback, (SCM smob, SCM axis));
35   DECLARE_SCHEME_CALLBACK(get_bar_size, (SCM ));
36   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
37   DECLARE_SCHEME_CALLBACK(center_on_spanned_callback, (SCM element, SCM axis));
38 };
39
40 #endif // SPAN_BAR_HH