]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stem.hh
22721dad318d46b5d6b8736901e636ff0703a238
[lilypond.git] / lily / include / stem.hh
1 /*
2   stem.hh -- declare Stem
3
4   (c) 1996--2004 Han-Wen Nienhuys
5 */
6
7 #ifndef STEM_HH
8 #define STEM_HH
9
10 #include "lily-proto.hh"
11 #include "lily-guile.hh"
12 #include "stem-info.hh"
13 #include "drul-array.hh"
14
15 class Stem 
16 {
17 public:
18   static Array<int> note_head_positions (Grob *);
19   static int duration_log (Grob *);
20   static void set_beaming (Grob *, int, Direction d);
21   static int get_beaming (Grob *, Direction d);
22   static Spanner *get_beam (Grob *);
23   static Grob *first_head (Grob *);
24   static Grob *last_head (Grob *);
25   static Drul_array<Grob*> extremal_heads (Grob *);
26   static Grob *support_head (Grob *) ;
27   static void add_head (Grob *me, Grob *n);
28   static Stem_info get_stem_info (Grob *);
29   static Real chord_start_y (Grob *);
30   static Direction get_direction (Grob *);
31   static void set_stemend (Grob *,Real);
32   static Direction get_default_dir (Grob *);
33   static Slice Stem::beam_multiplicity (Grob *);
34   static Real thickness (Grob*);
35   static int head_count (Grob *);
36   static bool is_invisible (Grob *) ;
37   static Interval head_positions (Grob *);
38   static Real get_default_stem_end_position (Grob*me);
39   static void position_noteheads (Grob *);
40   static Real stem_end_position (Grob *);
41   static Stencil flag (Grob *);
42   static bool has_interface (Grob *);
43   static void set_spacing_hints (Grob *);
44   
45   DECLARE_SCHEME_CALLBACK (print, (SCM));
46   DECLARE_SCHEME_CALLBACK (off_callback, (SCM element, SCM axis));
47   DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM));
48   DECLARE_SCHEME_CALLBACK (dim_callback, (SCM smob, SCM axis));
49   DECLARE_SCHEME_CALLBACK (height, (SCM, SCM));
50
51 private:
52   static void calc_stem_info (Grob *);
53 };
54 #endif