Skip to main content

readout_templates

Function readout_templates 

Source
pub fn readout_templates(
    values: Values,
    labels: [&str; 3],
    names: &[String],
) -> Vec<String>
Expand description

The widest text each line of the readout can hold, one per line: what the loupe’s readout block is measured from, so that its size stays the same while the values change, lag or go away.

Display has three lines (the position, RGB and Lab); Scene has the position and one line per name in names (the values the source gave last, one line while it has given none). Each line is the longer of its widest values and the none label; the readout is laid out in a monospace font, so the longer is the wider.