See o_basic.c:
void o_redraw_rects (GSCHEM_TOPLEVEL *w_current, GdkRectangle *rectangles, int n_rectangles)
obj_list = s_page_objects_in_regions (toplevel, toplevel->page_current, world_rects, n_rectangles);
The implementation of that could be a spatial lookup if we needed in the future. I have a branch which uses r_tree code from PCB to achieve that, but it is not 100% tested.
See o_basic.c:
void o_redraw_rects (GSCHEM_TOPLEVEL *w_current,
GdkRectangle *rectangles, int n_rectangles)
obj_list = s_page_ objects_ in_regions (toplevel, toplevel- >page_current,
world_ rects, n_rectangles);
The implementation of that could be a spatial lookup if we needed in the future. I have a branch which uses r_tree code from PCB to achieve that, but it is not 100% tested.