2 music-output-def.hh -- declare Output_def
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
9 #ifndef MUSIC_OUTPUT_DEF_HH
10 #define MUSIC_OUTPUT_DEF_HH
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
15 #include "virtual-methods.hh"
20 Definition of how to output lilypond.
25 VIRTUAL_COPY_CONSTRUCTOR (Output_def, Output_def);
26 DECLARE_SMOBS (Output_def,);
32 Output_def (Output_def const&);
34 virtual void derived_mark ();
39 SCM c_variable (String id) const;
40 SCM lookup_variable (SCM sym) const;
41 void set_variable (SCM sym, SCM val);
42 Real get_dimension (SCM symbol) const;
45 void assign_context_def (Output_def *m, SCM transdef);
46 SCM find_context_def (Output_def const *m, SCM name);
48 int get_tempo (Output_def*def, Moment moment);
49 void set_tempo (Output_def*def, Moment moment, int count_per_minute_i);
51 Interval line_dimensions_int (Output_def*def, int);
54 Font_metric *select_encoded_font (Output_def *paper, SCM input_encoding, SCM chain);
55 Font_metric *select_font (Output_def *paper, SCM chain);
57 DECLARE_UNSMOB (Output_def, output_def);
60 Font_metric *find_scaled_font (Output_def * od,
61 Font_metric *f, Real m, SCM input_enc_name);
62 Output_def *scale_output_def (Output_def *def, Real scale);
63 Real output_scale (Output_def*);
65 #endif /* MUSIC_OUTPUT_DEF_HH */