]> git.donarmstrong.com Git - lilypond.git/blob - stem.hh
release: 0.0.8
[lilypond.git] / stem.hh
1 /*
2   stem.hh -- part of LilyPond
3
4   (c) 1996 Han-Wen Nienhuys
5 */
6
7 #ifndef STEM_HH
8 #define STEM_HH
9 #include "item.hh"
10
11 /// the rule attached to the ball
12 struct Stem : public Item {
13     // heads the stem encompasses (positions)
14     int minnote, maxnote;
15
16     int staff_center;
17
18     // extent of the stem (positions)
19     int bot, top;
20     
21     // flagtype? 4 none, 8 8th flag, 0 = beam.
22     int flag;
23     
24     /****************/
25     
26     void postprocess();
27     Stem(int center);
28     void print() const;
29     Interval width() const;
30 private:
31     void calculate();
32     void brew_molecole();
33 };
34 /**
35   takes care of:
36
37   \begin{itemize}
38   \item the rule
39   \item the flag
40   \item up/down position.
41   \end{itemize}
42   */
43
44 #endif