pub struct ViewportBuilder { /* private fields */ }Expand description
Builder for Viewport.
Implementations§
Source§impl ViewportBuilder
impl ViewportBuilder
Sourcepub fn x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn x<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
X offset in device independent pixels (dip).
Sourcepub fn y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn y<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Y offset in device independent pixels (dip).
Sourcepub fn width<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
pub fn width<VALUE: Into<JsFloat>>(&mut self, value: VALUE) -> &mut Self
Rectangle width in device independent pixels (dip).
Trait Implementations§
Source§impl Clone for ViewportBuilder
impl Clone for ViewportBuilder
Source§fn clone(&self) -> ViewportBuilder
fn clone(&self) -> ViewportBuilder
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 ViewportBuilder
impl RefUnwindSafe for ViewportBuilder
impl Send for ViewportBuilder
impl Sync for ViewportBuilder
impl Unpin for ViewportBuilder
impl UnsafeUnpin for ViewportBuilder
impl UnwindSafe for ViewportBuilder
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