]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stem.hh
release: 1.3.131
[lilypond.git] / lily / include / stem.hh
1 /*
2   stem.hh -- declare Stem
3
4   (c) 1996--2001 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   DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
19
20   static  int flag_i (Grob*) ;
21   static int beam_count (Grob*,Direction) ;
22   static void set_beaming (Grob*,int,  Direction d);
23   static Grob * beam_l (Grob*);
24   static Grob * first_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 calc_stem_info (Grob *) ;
29   static Real chord_start_f (Grob *) ;
30   static Direction get_direction (Grob*) ;
31   static int type_i (Grob *) ;
32   static void set_stemend (Grob *,Real);
33   static Direction get_default_dir(Grob *) ;
34   static int get_center_distance(Grob *,Direction) ;
35   static int heads_i (Grob *) ;
36   static bool invisible_b(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   DECLARE_SCHEME_CALLBACK(off_callback, (SCM element, SCM axis));
42   static Molecule flag (Grob*);
43   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
44   DECLARE_SCHEME_CALLBACK(dim_callback, (SCM smob, SCM axis));
45   DECLARE_SCHEME_CALLBACK (height, (SCM,SCM));
46   static bool has_interface (Grob*);
47   static void set_interface (Grob*);
48
49   static void set_spacing_hints (Grob*me) ;
50 };
51 #endif