pub struct SetPosition {
pub x: PercentLength,
pub y: PercentLength,
}Expand description
Set overlay surface position relative to the window client area.
Fields§
§x: PercentLengthX position of percent or absolute length relative to the window’s width.
y: PercentLengthY position of percent or absolute length relative to the window’s height.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetPosition
impl<'__de, __Context> BorrowDecode<'__de, __Context> for SetPosition
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 Clone for SetPosition
impl Clone for SetPosition
Source§fn clone(&self) -> SetPosition
fn clone(&self) -> SetPosition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SetPosition
impl Debug for SetPosition
Source§impl<__Context> Decode<__Context> for SetPosition
impl<__Context> Decode<__Context> for SetPosition
Source§impl Default for SetPosition
impl Default for SetPosition
Source§fn default() -> SetPosition
fn default() -> SetPosition
Returns the “default value” for a type. Read more
Source§impl Encode for SetPosition
impl Encode for SetPosition
Source§impl From<SetPosition> for WindowRequest
impl From<SetPosition> for WindowRequest
Source§fn from(value: SetPosition) -> Self
fn from(value: SetPosition) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetPosition
impl PartialEq for SetPosition
Source§fn eq(&self, other: &SetPosition) -> bool
fn eq(&self, other: &SetPosition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SetPosition
impl WindowRequestItem for SetPosition
Auto Trait Implementations§
impl Freeze for SetPosition
impl RefUnwindSafe for SetPosition
impl Send for SetPosition
impl Sync for SetPosition
impl Unpin for SetPosition
impl UnsafeUnpin for SetPosition
impl UnwindSafe for SetPosition
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