[Goocanvas-devel] API for finding items in the canvas
Status: Beta
Brought to you by:
dachaplin
From: Damon C. <da...@ka...> - 2007-02-26 15:01:46
|
Hi all, Gian thinks the current goo_canvas_item_get_item_at() function isn't enough. He suggested adding: 1) goo_canvas_get_all_items_at() to get all items at the given point. To do this we can either add a new method to the GooCanvasItem interface, or change the current one to handle both cases. I'd prefer the latter, to avoid cluttering the API, though it does break the current API a bit. 2) goo_canvas_get_all_items_in_area (GooCanvas*, GooCanvasBounds*) maybe with options like INSIDE/OUTSIDE/OVERLAPS_ALLOWED. I think this is fairly easy to do, without needed new GooCanvasItem methods. Any comments or better ideas? (I'll release 0.7 after this is done.) Damon |