]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-symbol-referencer.hh
* lily/text-item.cc (interpret_markup): idem.
[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--2004 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   
25   static bool has_interface (Grob*);
26   static bool ugly_hack (Grob*);  
27   static void set_position (Grob*,Real);
28   DECLARE_SCHEME_CALLBACK (callback, (SCM element, SCM axis));
29
30   /**
31      Leading are the lead strips between the sticks (lines) of
32      typeface. ie. leading is vertical space.
33   */
34  
35   static Real line_thickness (Grob*);
36   static Real staff_space (Grob*);
37   static Grob * get_staff_symbol (Grob*);
38   static bool on_staffline (Grob*);
39   static bool on_staffline (Grob*,int);
40   static int line_count (Grob*);
41   static Real get_position (Grob*);
42   static Real staff_radius (Grob*);
43   static int get_rounded_position (Grob*me);
44 };
45
46 int compare_position (Grob *const&,Grob *const&); 
47 #endif /* STAFF_SYMBOL_REFERENCER_HH */
48