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