]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-symbol-referencer.hh
patch::: 1.3.93.jcn2
[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 
22 {
23 public:
24   static void set_interface (Score_element*);
25   static bool has_interface (Score_element*);
26   static void set_position (Score_element*,Real);
27   static SCM callback (SCM element, SCM axis);
28
29   /**
30      Leading are the lead strips between the sticks (lines) of
31      typeface. ie. leading is vertical space.
32   */
33  
34   static Real staff_space (Score_element*);
35   static Score_element * staff_symbol_l (Score_element*);
36   static bool on_staffline (Score_element*);
37   static bool on_staffline (Score_element*,int);
38   static int line_count (Score_element*);
39   static Real position_f (Score_element*);
40   static Real staff_radius (Score_element*);
41 };
42
43 int compare_position (Score_element *const&,Score_element *const&); 
44 #endif /* STAFF_SYMBOL_REFERENCER_HH */
45