]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-symbol-referencer.hh
release: 1.3.68
[lilypond.git] / lily / include / staff-symbol-referencer.hh
1 /*   
2   staff-sym-referencer.hh -- declare staff_symbol_referencer
3   
4   source file of the GNU LilyPond music typesetter
5   
6   (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef STAFF_SYMBOL_REFERENCER_HH
11 #define STAFF_SYMBOL_REFERENCER_HH
12
13 #include "score-element.hh"
14
15
16 /**
17    A notation object that needs access to variables of the staff (no
18    lines, leading).
19    
20  */
21 class Staff_symbol_referencer_interface 
22 {
23 public:
24   Score_element * elt_l_;       // junkme.
25   Staff_symbol_referencer_interface (Score_element const*);
26   static void set_interface (Score_element*);
27   static bool has_interface_b (Score_element*);
28   void set_position (Real);
29   static Real callback (Score_element *, Axis a);
30
31   /**
32      Leading are the lead strips between the sticks (lines) of
33      typeface. ie. leading is vertical space.
34    */
35   
36   Real staff_space () const;
37   Staff_symbol * staff_symbol_l () const;
38   int line_count () const;
39   Real position_f () const;
40 };
41
42 int compare_position (Score_element *const&,Score_element *const&); 
43 #endif /* STAFF_SYMBOL_REFERENCER_HH */
44