]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/stem.hh
* lily/grob-property.cc (get_interfaces): new function.
[lilypond.git] / lily / include / stem.hh
1 /*
2   stem.hh -- declare Stem
3
4   (c) 1996--2005 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   static Array<int> note_head_positions (Grob *);
18   static int duration_log (Grob *);
19   static void set_beaming (Grob *, int, Direction d);
20   static int get_beaming (Grob *, Direction d);
21   static Spanner *get_beam (Grob *);
22   static Grob *first_head (Grob *);
23   static Grob *last_head (Grob *);
24   static Drul_array<Grob *> extremal_heads (Grob *);
25   static Grob *support_head (Grob *);
26   static void add_head (Grob *me, Grob *n);
27   static Stem_info get_stem_info (Grob *);
28   static Real chord_start_y (Grob *);
29   static void set_stemend (Grob *, Real);
30   static Slice beam_multiplicity (Grob *);
31   static Direction get_default_dir (Grob*);
32   static Real thickness (Grob *);
33   static int head_count (Grob *);
34   static bool is_invisible (Grob *);
35   static Interval head_positions (Grob *);
36   static Real stem_end_position (Grob *);
37   static Stencil flag (Grob *);
38   static Stencil get_translated_flag (Grob*);
39   static bool has_interface (Grob *);
40   static void set_spacing_hints (Grob *);
41   
42   DECLARE_SCHEME_CALLBACK (print, (SCM));
43   DECLARE_SCHEME_CALLBACK (offset_callback, (SCM element, SCM axis));
44   DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
45   DECLARE_SCHEME_CALLBACK (calc_length, (SCM));
46   DECLARE_SCHEME_CALLBACK (calc_stem_end_position, (SCM));
47   DECLARE_SCHEME_CALLBACK (calc_stem_info, (SCM));
48   DECLARE_SCHEME_CALLBACK (calc_positioning_done, (SCM));
49   DECLARE_SCHEME_CALLBACK (width_callback, (SCM smob, SCM axis));
50   DECLARE_SCHEME_CALLBACK (height, (SCM, SCM));
51 };
52 #endif