pub struct NewWindowFeatures<T: UserEvent, R: Runtime<T>> { /* private fields */ }Expand description
Window features of a window requested to open.
Implementations§
Source§impl<T: UserEvent, R: Runtime<T>> NewWindowFeatures<T, R>
impl<T: UserEvent, R: Runtime<T>> NewWindowFeatures<T, R>
pub fn new( size: Option<LogicalSize<f64>>, position: Option<LogicalPosition<f64>>, opener: R::WindowOpener, ) -> Self
Sourcepub fn size(&self) -> Option<LogicalSize<f64>>
pub fn size(&self) -> Option<LogicalSize<f64>>
Specifies the size of the content area as defined by the user’s operating system where the new window will be generated.
Sourcepub fn position(&self) -> Option<LogicalPosition<f64>>
pub fn position(&self) -> Option<LogicalPosition<f64>>
Specifies the position of the window relative to the work area as defined by the user’s operating system where the new window will be generated.
Sourcepub fn opener(&self) -> &R::WindowOpener
pub fn opener(&self) -> &R::WindowOpener
Returns information about the webview that initiated a new window request.
Sourcepub fn into_opener(self) -> R::WindowOpener
pub fn into_opener(self) -> R::WindowOpener
Returns information about the webview that initiated a new window request.
Trait Implementations§
Auto Trait Implementations§
impl<T, R> Freeze for NewWindowFeatures<T, R>
impl<T, R> RefUnwindSafe for NewWindowFeatures<T, R>
impl<T, R> Send for NewWindowFeatures<T, R>
impl<T, R> Sync for NewWindowFeatures<T, R>
impl<T, R> Unpin for NewWindowFeatures<T, R>
impl<T, R> UnsafeUnpin for NewWindowFeatures<T, R>
impl<T, R> UnwindSafe for NewWindowFeatures<T, R>
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