]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stem.hh
Merge branch 'master' of ssh+git://hanwen@git.sv.gnu.org/srv/git/lilypond
[lilypond.git] / lily / include / stem.hh
1 /*
2   stem.hh -- declare Stem
3
4   (c) 1996--2006 Han-Wen Nienhuys
5 */
6
7 #ifndef STEM_HH
8 #define STEM_HH
9
10 #include "std-vector.hh"
11 #include "lily-proto.hh"
12 #include "lily-guile.hh"
13 #include "stem-info.hh"
14 #include "grob-interface.hh"
15
16 class Stem
17 {
18 public:
19   static vector<int> note_head_positions (Grob *);
20   static int duration_log (Grob *);
21   static void set_beaming (Grob *, int, Direction d);
22   static int get_beaming (Grob *, Direction d);
23   static Spanner *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 get_stem_info (Grob *);
30   static Real chord_start_y (Grob *);
31   static void set_stemend (Grob *, Real);
32   static Slice beam_multiplicity (Grob *);
33   static Direction get_default_dir (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 stem_end_position (Grob *);
39   static Stencil flag (Grob *);
40   static Stencil get_translated_flag (Grob*);
41   DECLARE_GROB_INTERFACE();
42   static void set_spacing_hints (Grob *);
43   
44   DECLARE_SCHEME_CALLBACK (print, (SCM));
45   DECLARE_SCHEME_CALLBACK (calc_default_direction, (SCM));
46   DECLARE_SCHEME_CALLBACK (offset_callback, (SCM element));
47   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
48   DECLARE_SCHEME_CALLBACK (calc_beaming, (SCM));
49   DECLARE_SCHEME_CALLBACK (calc_length, (SCM));
50   DECLARE_SCHEME_CALLBACK (calc_stem_end_position, (SCM));
51   DECLARE_SCHEME_CALLBACK (calc_stem_info, (SCM));
52   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
53   DECLARE_SCHEME_CALLBACK (width, (SCM smob));
54   DECLARE_SCHEME_CALLBACK (pure_height, (SCM, SCM, SCM));
55   DECLARE_SCHEME_CALLBACK (height, (SCM));
56 };
57 #endif