]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/item.hh
release: 1.3.131
[lilypond.git] / lily / include / item.hh
1 /*
2   item.hh -- declare Item
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8 #ifndef ITEM_HH
9 #define ITEM_HH
10
11
12 #include "box.hh"
13 #include "grob.hh"
14 #include "drul-array.hh"
15 #include "protected-scm.hh"
16
17 /**
18   A horizontally fixed size element of the score.
19
20   Item is the datastructure for printables whose width is known
21   before the spacing is calculated
22
23 */
24 class Item : public Grob
25 {
26   Drul_array<Item*> broken_to_drul_;
27
28 public:
29   VIRTUAL_COPY_CONS(Grob);
30   Item (SCM);
31   Item (Item const &);
32
33   static bool breakable_b (Grob*me);
34   bool broken_b () const;
35   
36   Direction break_status_dir () const;
37   
38   Item * find_prebroken_piece (Direction) const;
39   Grob * find_broken_piece (Line_of_score*) const;    
40
41   virtual Line_of_score * line_l() const;
42   virtual Paper_column * column_l () const;
43   virtual void handle_prebroken_dependencies ();
44 protected:
45   virtual void discretionary_processing ();
46   void copy_breakable_items();
47   virtual SCM do_derived_mark ();
48 };
49
50
51
52 #endif