Function nih_plug_vizia::widgets::util::remap_current_entity_x_coordinate
source · pub fn remap_current_entity_x_coordinate(
cx: &EventContext<'_>,
x_coord: f32
) -> f32Expand description
Remap an x-coordinate to a [0, 1] value within the current entity’s bounding box. The value
will be clamped to [0, 1] if it isn’t already in that range. This ignores the border width.