Skip to main content

label_rect

Function label_rect 

Source
pub fn label_rect(data: &ComponentKit, part: &Part<'_>, size: Vec2) -> Rect
Expand description

Where a label of size goes in a part: along it by the component’s align, inside its room less the padding, centred across; on whole physical pixels is the painter’s business.