Skip to main content

is_position_inside_bounds

Function is_position_inside_bounds 

Source
pub fn is_position_inside_bounds(
    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).