Options: ridquery_ig_pointer, ridquery_toward.
A region id number.
An input group number.
A region type.
An event type.
The region from which the query originates.
A PtRect.
The maximum number of region ids to return.
This function finds all the regions that meet the specified criteria. Only those regions that satisfy criteria of the flag, rid, input_group, type, and sense, and also intersect the area of rect, are included.