[][src]Function egui::align_rect

pub fn align_rect(rect: Rect, align: (Align, Align)) -> Rect

Used e.g. to anchor a piece of text to a part of the rectangle. Give a position within the rect, specified by the aligns