2 item.hh -- declare Item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
14 #include "score-element.hh"
15 #include "drul-array.hh"
16 #include "protected-scm.hh"
19 A horizontally fixed size element of the score.
21 Item is the datastructure for printables whose width is known
22 before the spacing is calculated
24 NB. This doesn't mean an Item has to initialize the output field before
30 visibility-lambda -- a function that takes the break
31 direction and returns a (transparent, empty) cons
33 breakable -- boolean indicating if this is a breakable item (clef,
34 barline, key sig, etc.)
37 class Item : public Score_element
39 Drul_array<Item*> broken_to_drul_;
42 VIRTUAL_COPY_CONS(Score_element);
46 bool breakable_b () const;
47 bool broken_b () const;
49 Direction break_status_dir () const;
51 Item * find_prebroken_piece (Direction) const;
52 Score_element * find_broken_piece (Line_of_score*) const;
54 virtual Line_of_score * line_l() const;
55 virtual Paper_column * column_l () const;
56 virtual void handle_prebroken_dependencies ();
58 virtual void discretionary_processing ();
59 void copy_breakable_items();