Skip to main content

name_width

Function name_width 

Source
pub fn name_width(requested: Option<f32>, width: f32) -> f32
Available on crate feature property-grid only.
Expand description

The name column’s width in a row width pixels wide. A dragged or set width is kept between MIN_NAME_WIDTH and what leaves the value column MIN_VALUE_WIDTH. Otherwise names take NAME_WIDTH, and in a narrow grid the value column gives up its room first, down to VALUE_WIDTH, so names stay readable.