| 723 | } |
| 724 | |
| 725 | void |
| 726 | selection_iterate( |
| 727 | struct selectionvar *ov, |
| 728 | select_iter_func func, |
| 729 | genericptr_t arg) |
| 730 | { |
| 731 | coordxy x, y; |
| 732 | NhRect rect = cg.zeroNhRect; |
| 733 | |
| 734 | if (!ov) |
| 735 | return; |
| 736 | |
| 737 | selection_getbounds(ov, &rect); |
| 738 | |
| 739 | for (x = rect.lx; x <= rect.hx; x++) |
| 740 | for (y = rect.ly; y <= rect.hy; y++) |
| 741 | if (isok(x,y) && selection_getpoint(x, y, ov)) |
| 742 | (*func)(x, y, arg); |
| 743 | } |
| 744 | |
| 745 | /* selection is not rectangular, or has holes in it */ |
| 746 | boolean |
no test coverage detected