]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/staff-sym.hh
4a4888a5226d17541488a5f8131ae1d52e975f2c
[lilypond.git] / lily / include / staff-sym.hh
1 /*
2   staffsym.hh -- declare Staff_symbol
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
8
9
10 #ifndef STAFFSYM_HH
11 #define STAFFSYM_HH
12 #include "spanner.hh"
13
14 /**
15   This spanner draws the lines of a pstaff.
16   The bottom line is position 0.
17   */
18 class Staff_symbol : public Spanner
19 {
20   /// this many lines.
21   int no_lines_i_;
22   Real interline_f_;
23 public:
24   DECLARE_MY_RUNTIME_TYPEINFO;
25   Staff_symbol (int lines);
26   Real inter_note_f() const;
27   int steps_i() const;
28 protected:
29   SCORE_ELEM_CLONE(Staff_symbol);
30   virtual Interval do_height () const;
31   virtual Molecule* brew_molecule_p() const;
32   virtual void do_print() const;
33 };
34 #endif // STAFFSYM_HH