2 stem.hh -- declare Stem
4 (c) 1996--2002 Han-Wen Nienhuys
10 #include "lily-proto.hh"
11 #include "lily-guile.hh"
12 #include "stem-info.hh"
13 #include "drul-array.hh"
18 DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
20 static Array<int> note_head_positions (Grob*);
21 static int duration_log (Grob*) ;
22 static void set_beaming (Grob*,int, Direction d);
23 static Grob * get_beam (Grob*);
24 static Grob * first_head (Grob*) ;
25 static Grob * last_head (Grob*) ;
26 static Drul_array<Grob*> extremal_heads (Grob*);
27 static Grob * support_head (Grob*) ;
28 static void add_head (Grob*me, Grob*n);
29 static Stem_info calc_stem_info (Grob *) ;
30 static Real chord_start_y (Grob *) ;
31 static Direction get_direction (Grob*) ;
32 static void set_stemend (Grob *,Real);
33 static Direction get_default_dir (Grob *) ;
34 static Slice Stem::beam_multiplicity (Grob *stem);
36 static int head_count (Grob *) ;
37 static bool invisible_b (Grob *) ;
38 static Interval head_positions (Grob *) ;
39 static Real get_default_stem_end_position (Grob*me) ;
40 static void position_noteheads (Grob*);
41 static Real stem_end_position (Grob*) ;
42 DECLARE_SCHEME_CALLBACK (off_callback, (SCM element, SCM axis));
43 static Molecule flag (Grob*);
44 DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
45 DECLARE_SCHEME_CALLBACK (dim_callback, (SCM smob, SCM axis));
46 DECLARE_SCHEME_CALLBACK (height, (SCM,SCM));
47 static bool has_interface (Grob*);
48 static void set_spacing_hints (Grob*me) ;