Skip to main content

inspector_column_width_range

Function inspector_column_width_range 

Source
pub fn inspector_column_width_range(
    view: &ViewHandle,
    min: Option<f64>,
    ideal: f64,
    max: Option<f64>,
) -> ViewHandle
Expand description

Apply .inspectorColumnWidth(min:ideal:max:) — a width the user can drag within.

min and max are Optional<CGFloat> and ideal is not, which is exactly how they travel: an Optional<CGFloat> is lowered as payload-then-tag in integer registers — the same shape frame_optional passes — while the bare ideal goes in d0 with the floats. Leaving a bound out is not the same as pinning it to zero: None means the column is unconstrained in that direction.