]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/graphical-axis-group.hh
73249862b60ef52405c7415e2da0ec7bf7c1ea81
[lilypond.git] / lily / include / graphical-axis-group.hh
1 /*
2   axis-group-administration.hh -- declare Graphical_axis_group
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9
10 #ifndef GRAPHICAL_AXIS_GROUP_HH
11 #define GRAPHICAL_AXIS_GROUP_HH
12
13
14 #include "parray.hh"
15 #include "axes.hh"
16 #include "real.hh"
17 #include "lily-proto.hh"
18 #include "graphical-element.hh"
19
20 /**
21   Treat a group of graphical elements as an aggegrate.
22  */
23 class Graphical_axis_group : public virtual Graphical_element {
24 public:
25   Link_array<Graphical_element> elem_l_arr_;
26   Axis axes_[2];
27     
28   Interval extent (Axis) const;
29   virtual void do_print() const;
30   Graphical_axis_group (Graphical_axis_group const&);
31   Graphical_axis_group (Axis,Axis);
32   void remove_all ();
33
34   bool contains_b (Graphical_element const *) const;
35   void add_element (Graphical_element*);
36   void remove_element (Graphical_element*);
37   
38 };
39
40 #endif // Graphical_axis_group_HH