]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-symbol-referencer.hh
patch::: 1.3.33.jcn3
[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_;
25   Staff_symbol_referencer_interface (Score_element const*);
26   void set_interface ();
27   bool has_interface_b ();
28   void set_position (Real);
29   static Real callback (Dimension_cache const*); 
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
44
45 Staff_symbol_referencer_interface staff_symbol_referencer  (Score_element const*);
46
47 #endif /* STAFF_SYMBOL_REFERENCER_HH */
48