pub struct OverlayLayout {
pub position: (PercentLength, PercentLength),
pub anchor: (PercentLength, PercentLength),
pub margin: (PercentLength, PercentLength, PercentLength, PercentLength),
}Expand description
A simple overlay layout implementation.
Fields§
§position: (PercentLength, PercentLength)X, Y Position of the overlay surface, relative to window’s client size.
anchor: (PercentLength, PercentLength)X, Y Positioning anchor of the overlay surface, relative to overlay’s surface size.
margin: (PercentLength, PercentLength, PercentLength, PercentLength)Top, right, bottom, left margins of the overlay surface, relative to window’s client size.
Implementations§
Trait Implementations§
Source§impl Clone for OverlayLayout
impl Clone for OverlayLayout
Source§fn clone(&self) -> OverlayLayout
fn clone(&self) -> OverlayLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OverlayLayout
impl RefUnwindSafe for OverlayLayout
impl Send for OverlayLayout
impl Sync for OverlayLayout
impl Unpin for OverlayLayout
impl UnwindSafe for OverlayLayout
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