2 side-position-interface.hh -- declare Side_position_interface
4 source file of the GNU LilyPond music typesetter
6 (c) 1999--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
10 #ifndef SIDE_POSITION_INTERFACE_HH
11 #define SIDE_POSITION_INTERFACE_HH
18 Position victim object (ELT_L_) next to other objects (the support).
20 side-support -- list of score elements
22 direction -- where to put the victim object (left or right?)
24 side-relative-direction -- if set: get the direction from a different object, and multiply by this.
26 direction-source -- in case side-relative-direction is set, where
29 minimum-space -- minimum distance that the victim should move
32 padding -- add this much extra space between victim and support
35 TODO: move out unrelated callbacks.
37 TODO: reduce number of methods.
42 static Real side_position (Score_element *, Axis);
43 static Real aligned_on_self (Score_element *, Axis);
44 static Real aligned_side (Score_element *, Axis);
45 static Real quantised_position (Score_element *, Axis);
46 static Real centered_on_parent (Score_element *, Axis);
47 static void set_axis (Score_element*,Axis);
48 static void set_minimum_space (Score_element*,Real);
49 static void set_padding (Score_element*,Real);
50 static Axis get_axis (Score_element*) ;
51 static bool supported_b (Score_element*) ;
52 static bool has_interface (Score_element*) ;
53 static void add_support (Score_element*,Score_element*);
54 static void add_staff_support (Score_element*);
55 static Direction get_direction (Score_element*);
56 static void set_direction (Score_element*,Direction);
60 #endif /* SIDE_POSITION_INTERFACE_HH */