]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/span-bar.hh
release: 1.3.109
[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 class Span_bar
22 {
23 public:
24   static void set_interface (Grob*);
25   static bool has_interface (Grob*);  
26   static Interval get_spanned_interval (Grob*);
27   static void add_bar (Grob*,Grob*);
28   static void evaluate_glyph (Grob*);
29   static void evaluate_empty (Grob*);
30   DECLARE_SCHEME_CALLBACK(width_callback, (SCM smob, SCM axis));
31   DECLARE_SCHEME_CALLBACK(get_bar_size, (SCM ));
32   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
33   DECLARE_SCHEME_CALLBACK(center_on_spanned_callback, (SCM element, SCM axis));
34 };
35
36 #endif // SPAN_BAR_HH