/*
- rest.hh -- part of LilyPond
+ rest.hh -- declare Rest
- (c) 1996,97 Han-Wen Nienhuys
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
+
#ifndef REST_HH
#define REST_HH
-#include "item.hh"
-
-/** typeset a Rest. A "vanilla" item.
- */
-struct Rest : Item {
- int dots;
- int balltype;
-
- /// rests can be translated up and down.
- int pos_i_;
- /* *************** */
+#include "lily-guile.hh"
-
- Rest(Duration);
- void do_print()const;
-NAME_MEMBERS(Rest);
- Molecule* brew_molecule_p()const;
+class Rest
+{
+public:
+ DECLARE_SCHEME_CALLBACK (after_line_breaking, (SCM ));
+ static bool has_interface (Grob*);
+ static String glyph_name (Grob*, int, String);
+ static SCM brew_internal_stencil (SCM);
+ DECLARE_SCHEME_CALLBACK (extent_callback, (SCM,SCM));
+ DECLARE_SCHEME_CALLBACK (print, (SCM ));
};
-#endif
-
+#endif // REST_HH