/*
key-item.hh -- part of GNU LilyPond
- (c) 1996,97 Han-Wen Nienhuys
+ (c) 1996--2000 Han-Wen Nienhuys
*/
#ifndef KEYITEM_HH
#define KEYITEM_HH
-#include "item.hh"
-#include "varray.hh"
+#include "lily-guile.hh"
+#include "lily-proto.hh"
-/// An item which places accidentals at the start of the line
-struct Key_item : Item {
- Array<int> pitch;
- Array<int> acc;
- int c_position;
-
-
- /* *************** */
- NAME_MEMBERS();
- SCORE_ELEM_CLONE(Key_item)
-
- Key_item(int cposition);
- void add(int pitch, int acc);
- void read(const Key_register&);
- void set_c_position(int);
- void preprocess();
- Molecule* brew_molecule_p()const;
+struct Key_item
+{
+ static int calculate_position(Score_element*,SCM pair) ;
+ static void set_interface (Score_element*);
+ static bool has_interface (Score_element*);
+ DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
};
#endif // KEYITEM_HH