get_items_at


Description:

public abstract unowned List<CanvasItem> get_items_at (double x, double y, Context cr, bool is_pointer_event, bool parent_is_visible, List<CanvasItem> found_items)

This function is only intended to be used when implementing new canvas items, specifically container items such as CanvasGroup.

It gets the items at the given point.

Parameters:

this

a CanvasItem.

x

the x coordinate of the point.

y

the y coordinate of the point.

cr

a cairo contect.

is_pointer_event

true if the "pointer-events" properties of items should be used to determine which parts of the item are tested.

parent_is_visible

true if the parent item is visible (which implies that all ancestors are also visible).

found_items

the list of items found so far.

Returns:

the found_items list, with any more found items added onto the start of the list, leaving the top item first.