pub struct LayoutExtensions;Expand description
Extension methods for layout types.
Implementations§
Source§impl LayoutExtensions
impl LayoutExtensions
Sourcepub fn align(
rect: Rect,
constraint: Rect,
horizontal_alignment: HorizontalAlignment,
vertical_alignment: VerticalAlignment,
) -> Rect
pub fn align( rect: Rect, constraint: Rect, horizontal_alignment: HorizontalAlignment, vertical_alignment: VerticalAlignment, ) -> Rect
Aligns a rect in a constraining rect according to horizontal and vertical alignment settings.
Auto Trait Implementations§
impl Freeze for LayoutExtensions
impl RefUnwindSafe for LayoutExtensions
impl Send for LayoutExtensions
impl Sync for LayoutExtensions
impl Unpin for LayoutExtensions
impl UnsafeUnpin for LayoutExtensions
impl UnwindSafe for LayoutExtensions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more