pub struct NewWindowFeatures { /* private fields */ }
Expand description
Window features of a window requested to open.
Implementations§
Source§impl NewWindowFeatures
impl NewWindowFeatures
pub fn new( size: Option<LogicalSize<f64>>, position: Option<LogicalPosition<f64>>, opener: NewWindowOpener, ) -> 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) -> &NewWindowOpener
pub fn opener(&self) -> &NewWindowOpener
Returns information about the webview that initiated a new window request.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NewWindowFeatures
impl RefUnwindSafe for NewWindowFeatures
impl !Send for NewWindowFeatures
impl !Sync for NewWindowFeatures
impl Unpin for NewWindowFeatures
impl UnwindSafe for NewWindowFeatures
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