- static int visible_stem_count (Grob*);
- static Item* first_visible_stem (Grob*);
- static Item* last_visible_stem (Grob*);
- static bool has_interface (Grob*);
- DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM axis));
- Beam (SCM);
- static void add_stem (Grob*,Grob*);
- static void set_beaming (Grob*,Beaming_info_list *);
- static void set_stemlens (Grob*);
- static int get_multiplicity (Grob*me);
- DECLARE_SCHEME_CALLBACK (brew_molecule, (SCM ));
- DECLARE_SCHEME_CALLBACK (before_line_breaking, (SCM ));
- DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM ));
-
- /*
- y-dy callbacks
- */
- DECLARE_SCHEME_CALLBACK (least_squares, (SCM));
- DECLARE_SCHEME_CALLBACK (cancel_suspect_slope, (SCM));
- DECLARE_SCHEME_CALLBACK (slope_damping, (SCM));
- DECLARE_SCHEME_CALLBACK (quantise_dy, (SCM));
- DECLARE_SCHEME_CALLBACK (user_override, (SCM));
- DECLARE_SCHEME_CALLBACK (do_quantise_y, (SCM));
-
- static Molecule stem_beams (Grob*,Item *here, Item *next, Item *prev);
+ static int normal_stem_count (Grob *);
+ static Grob *first_normal_stem (Grob *);
+ static Grob *last_normal_stem (Grob *);
+ DECLARE_GROB_INTERFACE ();
+ static void add_stem (Grob *, Grob *);
+ static bool is_cross_staff (Grob *);
+ static bool is_knee (Grob *);
+ static void set_beaming (Grob *, Beaming_pattern const *);
+ static void set_stemlens (Grob *);
+ static int get_beam_count (Grob *me);
+ static Real get_beam_translation (Grob *me);
+ static Real get_beam_thickness (Grob *me);
+ static void connect_beams (Grob *me);
+ static vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common);
+
+ DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM prev_off));
+ DECLARE_SCHEME_CALLBACK (pure_rest_collision_callback, (SCM element, SCM, SCM, SCM prev_off));
+ DECLARE_SCHEME_CALLBACK (print, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_beaming, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_stem_shorten, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_positions, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_normal_stems, (SCM));
+ DECLARE_SCHEME_CALLBACK (set_stem_lengths, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_cross_staff, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_beam_segments, (SCM));
+ /* position callbacks */
+ DECLARE_SCHEME_CALLBACK (quanting, (SCM, SCM, SCM));
+ DECLARE_SCHEME_CALLBACK (calc_x_positions, (SCM));
+
+ static int get_direction_beam_count (Grob *me, Direction d);