pub struct LayoutViewportBuilder { /* private fields */ }Available on crate features
Page and Debugger and DOM and IO and Network and Runtime only.Implementations§
Source§impl LayoutViewportBuilder
impl LayoutViewportBuilder
Sourcepub fn page_x(&mut self, v: u32) -> &mut Self
pub fn page_x(&mut self, v: u32) -> &mut Self
Horizontal offset relative to the document (CSS pixels).
Sourcepub fn page_y(&mut self, v: u32) -> &mut Self
pub fn page_y(&mut self, v: u32) -> &mut Self
Vertical offset relative to the document (CSS pixels).
Sourcepub fn client_width(&mut self, v: u32) -> &mut Self
pub fn client_width(&mut self, v: u32) -> &mut Self
Width (CSS pixels), excludes scrollbar if present.
Sourcepub fn client_height(&mut self, v: u32) -> &mut Self
pub fn client_height(&mut self, v: u32) -> &mut Self
Height (CSS pixels), excludes scrollbar if present.
pub fn build(&mut self) -> Result<LayoutViewport, &'static str>
Trait Implementations§
Source§impl Clone for LayoutViewportBuilder
impl Clone for LayoutViewportBuilder
Source§fn clone(&self) -> LayoutViewportBuilder
fn clone(&self) -> LayoutViewportBuilder
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 LayoutViewportBuilder
impl Debug for LayoutViewportBuilder
Auto Trait Implementations§
impl Freeze for LayoutViewportBuilder
impl RefUnwindSafe for LayoutViewportBuilder
impl Send for LayoutViewportBuilder
impl Sync for LayoutViewportBuilder
impl Unpin for LayoutViewportBuilder
impl UnwindSafe for LayoutViewportBuilder
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