2 This file is part of LilyPond, the GNU music typesetter.
4 Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
6 LilyPond is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
11 LilyPond is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>.
25 A horizontally fixed size element of the score.
27 Item is the datastructure for printables whose width is known
28 before the spacing is calculated
30 class Item : public Grob
32 Drul_array<Item *> broken_to_drul_;
34 DECLARE_CLASSNAME (Item);
39 virtual Grob *clone () const;
41 static bool is_non_musical (Grob *);
42 static bool break_visible (Grob *);
44 bool is_broken () const;
45 virtual bool pure_is_visible (int start, int end) const;
47 Direction break_status_dir () const;
49 Item *find_prebroken_piece (Direction) const;
50 Grob *find_broken_piece (System *) const;
51 virtual System *get_system () const;
52 virtual Paper_column *get_column () const;
53 virtual void handle_prebroken_dependencies ();
54 virtual Interval_t<int> spanned_rank_interval () const;
55 virtual Interval pure_height (Grob *ref, int start, int end);
56 virtual void cache_pure_height (Interval height);
57 DECLARE_GROB_INTERFACE ();
59 virtual void discretionary_processing ();
60 void copy_breakable_items ();
61 virtual void derived_mark () const;
63 bool cached_pure_height_valid_;
64 Interval cached_pure_height_;
67 Interval_t<Moment> spanned_time_interval (Item *l, Item *r);