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 :: int -> (bool . bool)
36 (transparent, empty) cons
39 class Item
: public virtual Score_element
{
41 void try_visibility_lambda ();
46 Drul_array
<Item
*> broken_to_drul_
;
51 /// I am really to be broken?
52 bool breakable_b () const;
53 bool broken_b () const;
55 Direction
break_status_dir () const;
57 Item
* find_broken_piece (Direction
) const;
58 Score_element
* find_broken_piece (Line_of_score
*) const;
63 virtual Line_of_score
* line_l() const;
64 virtual Paper_column
* column_l () const;
66 static int left_right_compare (Item
const *, Item
const*);
70 virtual void do_breakable_col_processing();
72 void copy_breakable_items();