Struct chromiumoxide::layout::BoxModel
source · pub struct BoxModel {
pub content: ElementQuad,
pub padding: ElementQuad,
pub border: ElementQuad,
pub margin: ElementQuad,
pub width: u32,
pub height: u32,
}
Fields§
§content: ElementQuad
§padding: ElementQuad
§border: ElementQuad
§margin: ElementQuad
§width: u32
§height: u32
Implementations§
source§impl BoxModel
impl BoxModel
sourcepub fn content_viewport(&self) -> Viewport
pub fn content_viewport(&self) -> Viewport
Create a Viewport
equal to the content-box, using a scale of 1.0
sourcepub fn padding_viewport(&self) -> Viewport
pub fn padding_viewport(&self) -> Viewport
Create a Viewport
equal to the padding-box, using a scale of 1.0
sourcepub fn border_viewport(&self) -> Viewport
pub fn border_viewport(&self) -> Viewport
Create a Viewport
equal to the border-box, using a scale of 1.0
sourcepub fn margin_viewport(&self) -> Viewport
pub fn margin_viewport(&self) -> Viewport
Create a Viewport
equal to the margin-box, using a scale of 1.0
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BoxModel
impl RefUnwindSafe for BoxModel
impl Send for BoxModel
impl Sync for BoxModel
impl Unpin for BoxModel
impl UnwindSafe for BoxModel
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