Skip to main content

stood

Function stood 

Source
pub fn stood(y: i32, h: i32, row: f32, line: f32) -> (f32, f32)
Expand description

Where something h paint units tall at y stands in rows row pixels tall whose words are set for a line of line pixels, as a top and a height in pixels. Anything shorter than a row keeps the height it has on that line, in the middle of where it stood: a mark, a badge, a rule. What all but fills its row on that line is a control with a row to itself, a button, a text box, the band behind a picked row, a tip. On a taller row those are one height, CONTROL of the row, about 20 pt where a row is 26: the air goes round them and inside them both. A chip, which holds words and is a little shorter than a control, is CHIP of a taller row, so its words stand in its middle with room under their tails: on the line it’s too short for that, and its words are raised in it.