source file of the GNU LilyPond music typesetter
- (c) 2005--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 2005--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "pointer-group-interface.hh"
return arr;
}
+Grob *
+Pointer_group_interface::find_grob (Grob *me, SCM sym, bool (*pred) (Grob*))
+{
+ Grob_array *arr = get_grob_array (me, sym);
+
+ for (vsize i = 0; i < arr->size (); i++)
+ if (pred (arr->grob (i)))
+ return arr->grob (i);
+
+ return 0;
+}
+
void
Pointer_group_interface::add_grob (Grob *me, SCM sym, Grob *p)
{