Module nih_plug_iced::widgets::util

source ·
Expand description

Utilities for creating these widgets.

Functions

  • Remap an x-coordinate to a [0, 1] value within this rectangle. The value will be clamped to [0, 1] if it isn’t already in that range.
  • Remap a [0, 1] value to an x-coordinate within this rectangle. The value will be clamped to [0, 1] if it isn’t already in that range.
  • Remap a y-coordinate to a [0, 1] value within this rectangle. The value will be clamped to [0, 1] if it isn’t already in that range.
  • Remap a [0, 1] value to a y-coordinate within this rectangle. The value will be clamped to [0, 1] if it isn’t already in that range.