Skip to main content

on_device_pixels

Function on_device_pixels 

pub fn on_device_pixels(rect: Rect) -> Rect
Expand description

rect with its edges on the device pixels the frame draws on: a panel placed against a measured label width or a rounded row would otherwise stand between two pixels and be painted soft across both. Its leading edges round out and its trailing edges up, so a snap never takes room from a row.