pub struct SetAnchor {
pub x: PercentLength,
pub y: PercentLength,
}Expand description
Set overlay surface positioning anchor relative to the top-left of the overlay surface.
Fields§
§x: PercentLengthAnchor of X axis as percent relative to the window’s width.
y: PercentLengthAnchor of Y axis as percent relative to the window’s height.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetAnchor
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetAnchor
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl From<SetAnchor> for WindowRequest
impl From<SetAnchor> for WindowRequest
impl StructuralPartialEq for SetAnchor
impl WindowRequestItem for SetAnchor
Auto Trait Implementations§
impl Freeze for SetAnchor
impl RefUnwindSafe for SetAnchor
impl Send for SetAnchor
impl Sync for SetAnchor
impl Unpin for SetAnchor
impl UnsafeUnpin for SetAnchor
impl UnwindSafe for SetAnchor
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