source file of the GNU LilyPond music typesetter
- (c) 1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1998--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#define G_STAFF_SIDE_HH
#include "item.hh"
+#include "staff-symbol-referencer.hh"
-/*
- DO NOT USE AS BREAKABLE ITEM!
+/**
+ Position myself next to a set of elements. Configurable in axis
+ and direction.
- (-> core dump!)
- */
-class G_staff_side_item : public Item
+ Properties:
+
+ padding :: Real
+
+ Amount of extra space to add.
+*/
+class G_staff_side_item : public Item, public Staff_symbol_referencer
{
+ void position_self ();
+
public:
Score_element * to_position_l_;
Direction dir_;
Link_array<Score_element> support_l_arr_;
+ Axis axis_;
+ //junkme.
+ bool staff_support_b_;
G_staff_side_item ();
void set_victim (Score_element*);
void add_support (Score_element*);
- virtual void set_default_direction ();
VIRTUAL_COPY_CONS(Score_element);
+ virtual Direction get_default_direction () const;
protected:
- virtual void do_substitute_dependency (Score_element*,Score_element*);
+ virtual Interval do_height () const;
+ virtual Interval do_width () const;
+ virtual void do_print () const;
+ virtual void do_add_processing ();
+ virtual void do_substitute_element_pointer (Score_element*,Score_element*);
virtual void do_pre_processing ();
virtual void do_post_processing ();
};