Checks if a click occurred within the bounds of an element.
The element to check.
The x-coordinate of the click.
The y-coordinate of the click.
True if the click was on the element, false otherwise.
Checks if a click occurred within the bounds of an element.