is_position_in_component

Function is_position_in_component 

Source
pub fn is_position_in_component(
    size: ComputedData,
    position: PxPosition,
) -> bool
Expand description

Returns true if position is inside a component of the given size. The component is assumed to be located at the origin (0, 0).

This is a small convenience wrapper around is_position_in_rect.