]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-symbol-referencer.hh
patch::: 1.3.136.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--2001 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 "grob.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 (Grob*);
25   static bool has_interface (Grob*);
26   static void set_position (Grob*,Real);
27   DECLARE_SCHEME_CALLBACK (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 (Grob*);
35   static Grob * staff_symbol_l (Grob*);
36   static bool on_staffline (Grob*);
37   static bool on_staffline (Grob*,int);
38   static int line_count (Grob*);
39   static Real position_f (Grob*);
40   static Real staff_radius (Grob*);
41 };
42
43 int compare_position (Grob *const&,Grob *const&); 
44 #endif /* STAFF_SYMBOL_REFERENCER_HH */
45