]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stem.hh
release: 1.3.98
[lilypond.git] / lily / include / stem.hh
1 /*
2   stem.hh -- declare Stem
3
4   (c) 1996--2000 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
14 class Stem 
15 {
16 public:
17   DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
18
19   static  int flag_i (Score_element*) ;
20   static int beam_count (Score_element*,Direction) ;
21   static void set_beaming (Score_element*,int,  Direction d);
22   static Score_element * beam_l (Score_element*);
23   static Score_element * first_head (Score_element*) ;
24   static Drul_array<Score_element*> extremal_heads (Score_element*);
25   static Score_element * support_head (Score_element*) ;
26   static void add_head (Score_element*me, Score_element*n);
27   static Stem_info calc_stem_info (Score_element *) ;
28   static Real chord_start_f (Score_element *) ;
29   static Direction get_direction (Score_element*) ;
30   static int type_i (Score_element *) ;
31   static void set_stemend (Score_element *,Real);
32   static Direction get_default_dir(Score_element *) ;
33   static int get_center_distance(Score_element *,Direction) ;
34   static int heads_i (Score_element *) ;
35   static bool invisible_b(Score_element *) ;
36   static Interval head_positions(Score_element *) ;
37   static Real get_default_stem_end_position (Score_element*me) ;
38   static void position_noteheads(Score_element*);
39   static Real stem_end_position (Score_element*) ;
40   DECLARE_SCHEME_CALLBACK(off_callback, (SCM element, SCM axis));
41   static Molecule flag (Score_element*);
42   DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
43   DECLARE_SCHEME_CALLBACK(dim_callback, (SCM smob, SCM axis));
44   static bool has_interface (Score_element*);
45   static void set_interface (Score_element*);
46
47   static void set_spacing_hints (Score_element*me) ;
48 };
49 #endif