pub struct VisualViewportBuilder { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Implementations§
Source§impl VisualViewportBuilder
impl VisualViewportBuilder
Sourcepub fn offset_x(&mut self, v: f64) -> &mut Self
pub fn offset_x(&mut self, v: f64) -> &mut Self
Horizontal offset relative to the layout viewport (CSS pixels).
Sourcepub fn offset_y(&mut self, v: f64) -> &mut Self
pub fn offset_y(&mut self, v: f64) -> &mut Self
Vertical offset relative to the layout viewport (CSS pixels).
Sourcepub fn page_x(&mut self, v: f64) -> &mut Self
pub fn page_x(&mut self, v: f64) -> &mut Self
Horizontal offset relative to the document (CSS pixels).
Sourcepub fn page_y(&mut self, v: f64) -> &mut Self
pub fn page_y(&mut self, v: f64) -> &mut Self
Vertical offset relative to the document (CSS pixels).
Sourcepub fn client_width(&mut self, v: f64) -> &mut Self
pub fn client_width(&mut self, v: f64) -> &mut Self
Width (CSS pixels), excludes scrollbar if present.
Sourcepub fn client_height(&mut self, v: f64) -> &mut Self
pub fn client_height(&mut self, v: f64) -> &mut Self
Height (CSS pixels), excludes scrollbar if present.
Sourcepub fn scale(&mut self, v: f64) -> &mut Self
pub fn scale(&mut self, v: f64) -> &mut Self
Scale relative to the ideal viewport (size at width=device-width).
Sourcepub fn zoom(&mut self, v: f64) -> &mut Self
pub fn zoom(&mut self, v: f64) -> &mut Self
Page zoom factor (CSS to device independent pixels ratio).
pub fn build(&mut self) -> Result<VisualViewport, &'static str>
Trait Implementations§
Source§impl Clone for VisualViewportBuilder
impl Clone for VisualViewportBuilder
Source§fn clone(&self) -> VisualViewportBuilder
fn clone(&self) -> VisualViewportBuilder
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 VisualViewportBuilder
impl Debug for VisualViewportBuilder
Auto Trait Implementations§
impl Freeze for VisualViewportBuilder
impl RefUnwindSafe for VisualViewportBuilder
impl Send for VisualViewportBuilder
impl Sync for VisualViewportBuilder
impl Unpin for VisualViewportBuilder
impl UnwindSafe for VisualViewportBuilder
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