pub enum ImageAlignment {
Center,
Begin,
End,
}Expand description
Placement of scaled content inside the view bounds. Mirrors Godot’s
AspectRatioContainer::AlignmentMode and covers every fixed Alignment in
Compose (Begin/End are physical left/right and top/bottom, not
direction-aware).
Variants§
Center
Alignment.Center
Begin
Alignment.TopLeft / BottomStart - left and top
End
Alignment.TopRight / BottomEnd - right and bottom
Trait Implementations§
Source§impl Clone for ImageAlignment
impl Clone for ImageAlignment
impl Copy for ImageAlignment
Source§impl Debug for ImageAlignment
impl Debug for ImageAlignment
Source§impl Default for ImageAlignment
impl Default for ImageAlignment
impl Eq for ImageAlignment
Source§impl Hash for ImageAlignment
impl Hash for ImageAlignment
Source§impl PartialEq for ImageAlignment
impl PartialEq for ImageAlignment
impl StructuralPartialEq for ImageAlignment
Auto Trait Implementations§
impl Freeze for ImageAlignment
impl RefUnwindSafe for ImageAlignment
impl Send for ImageAlignment
impl Sync for ImageAlignment
impl Unpin for ImageAlignment
impl UnsafeUnpin for ImageAlignment
impl UnwindSafe for ImageAlignment
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