pub struct BoundsBuilder { /* private fields */ }Expand description
Builder for Bounds.
Implementations§
Source§impl BoundsBuilder
impl BoundsBuilder
Sourcepub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The offset from the left edge of the screen to the window in pixels.
Sourcepub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The offset from the top edge of the screen to the window in pixels.
Sourcepub fn width<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn width<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The window width in pixels.
Sourcepub fn height<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn height<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
The window height in pixels.
Sourcepub fn window_state<VALUE: Into<WindowState>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn window_state<VALUE: Into<WindowState>>( &mut self, value: VALUE, ) -> &mut Self
The window state. Default to normal.
Trait Implementations§
Source§impl Clone for BoundsBuilder
impl Clone for BoundsBuilder
Source§fn clone(&self) -> BoundsBuilder
fn clone(&self) -> BoundsBuilder
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 BoundsBuilder
impl RefUnwindSafe for BoundsBuilder
impl Send for BoundsBuilder
impl Sync for BoundsBuilder
impl Unpin for BoundsBuilder
impl UnsafeUnpin for BoundsBuilder
impl UnwindSafe for BoundsBuilder
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