2 item.hh -- declare Item
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
14 A horizontally fixed size element of the score.
16 Item is the datastructure for printables whose width is known
17 before the spacing is calculated
19 class Item : public Grob
21 Drul_array<Item *> broken_to_drul_;
23 DECLARE_CLASSNAME(Item);
28 virtual Grob *clone () const;
30 static bool is_non_musical (Grob *);
31 static bool break_visible(Grob *);
32 static bool less (Grob * const&, Grob * const&);
33 bool is_broken () const;
34 bool pure_is_visible (int start, int end) const;
36 Direction break_status_dir () const;
38 Item *find_prebroken_piece (Direction) const;
39 Grob *find_broken_piece (System *) const;
40 virtual System *get_system () const;
41 virtual Paper_column *get_column () const;
42 virtual void handle_prebroken_dependencies ();
43 virtual Interval_t<int> spanned_rank_interval () const;
44 virtual Interval pure_height (Grob *ref, int start, int end);
45 DECLARE_GROB_INTERFACE();
47 virtual void discretionary_processing ();
48 void copy_breakable_items ();
49 virtual void derived_mark () const;
51 bool cached_pure_height_valid_;
52 Interval cached_pure_height_;
55 Interval_t<Moment> spanned_time_interval (Item *l, Item *r);