closest_item


Description:

public SchematicItem? closest_item (SchematicPainter painter, int x, int y, double max_distance)

Find the closest item the the given coordinates

Parameters:

painter

The painter to use for calculations

x

The x coordinate of the point

y

The y coordinate of the point

max_distance

The maximum distance for items

Returns:

The closest item or null if none