pub struct BoundsBuilder { /* private fields */ }
Available on crate features
Browser
and experimental
only.Implementations§
Source§impl BoundsBuilder
impl BoundsBuilder
Sourcepub fn left(&mut self, v: u32) -> &mut Self
pub fn left(&mut self, v: u32) -> &mut Self
The offset from the left edge of the screen to the window in pixels.
Sourcepub fn top(&mut self, v: u32) -> &mut Self
pub fn top(&mut self, v: u32) -> &mut Self
The offset from the top edge of the screen to the window in pixels.
Sourcepub fn window_state(&mut self, v: JsonValue) -> &mut Self
pub fn window_state(&mut self, v: JsonValue) -> &mut Self
The window state. Default to normal.
pub fn build(&mut self) -> Result<Bounds, &'static str>
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 moreSource§impl Debug for BoundsBuilder
impl Debug for BoundsBuilder
Auto Trait Implementations§
impl Freeze for BoundsBuilder
impl RefUnwindSafe for BoundsBuilder
impl Send for BoundsBuilder
impl Sync for BoundsBuilder
impl Unpin 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