pub struct WorkAreaInsetsBuilder { /* private fields */ }Expand description
Builder for WorkAreaInsets.
Implementations§
Source§impl WorkAreaInsetsBuilder
impl WorkAreaInsetsBuilder
Sourcepub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Work area top inset in pixels. Default is 0;
Sourcepub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Work area left inset in pixels. Default is 0;
Sourcepub fn bottom<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn bottom<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Work area bottom inset in pixels. Default is 0;
Sourcepub fn right<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn right<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Work area right inset in pixels. Default is 0;
Sourcepub fn build(&self) -> Result<WorkAreaInsets, WorkAreaInsetsBuilderError>
pub fn build(&self) -> Result<WorkAreaInsets, WorkAreaInsetsBuilderError>
Trait Implementations§
Source§impl Clone for WorkAreaInsetsBuilder
impl Clone for WorkAreaInsetsBuilder
Source§fn clone(&self) -> WorkAreaInsetsBuilder
fn clone(&self) -> WorkAreaInsetsBuilder
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 WorkAreaInsetsBuilder
impl RefUnwindSafe for WorkAreaInsetsBuilder
impl Send for WorkAreaInsetsBuilder
impl Sync for WorkAreaInsetsBuilder
impl Unpin for WorkAreaInsetsBuilder
impl UnsafeUnpin for WorkAreaInsetsBuilder
impl UnwindSafe for WorkAreaInsetsBuilder
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