pub struct WindowOpenEventParamsBuilder { /* private fields */ }Expand description
Builder for WindowOpenEventParams.
Implementations§
Source§impl WindowOpenEventParamsBuilder
impl WindowOpenEventParamsBuilder
Sourcepub fn window_name(&mut self, value: String) -> &mut Self
pub fn window_name(&mut self, value: String) -> &mut Self
Window name.
Sourcepub fn window_features(&mut self, value: Vec<String>) -> &mut Self
pub fn window_features(&mut self, value: Vec<String>) -> &mut Self
An array of enabled window features.
Sourcepub fn user_gesture(&mut self, value: bool) -> &mut Self
pub fn user_gesture(&mut self, value: bool) -> &mut Self
Whether or not it was triggered by user gesture.
Sourcepub fn build(
&self,
) -> Result<WindowOpenEventParams, WindowOpenEventParamsBuilderError>
pub fn build( &self, ) -> Result<WindowOpenEventParams, WindowOpenEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for WindowOpenEventParamsBuilder
impl Clone for WindowOpenEventParamsBuilder
Source§fn clone(&self) -> WindowOpenEventParamsBuilder
fn clone(&self) -> WindowOpenEventParamsBuilder
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 WindowOpenEventParamsBuilder
impl RefUnwindSafe for WindowOpenEventParamsBuilder
impl Send for WindowOpenEventParamsBuilder
impl Sync for WindowOpenEventParamsBuilder
impl Unpin for WindowOpenEventParamsBuilder
impl UnsafeUnpin for WindowOpenEventParamsBuilder
impl UnwindSafe for WindowOpenEventParamsBuilder
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