pub struct ViewBox {
pub min_x: f32,
pub min_y: f32,
pub width: f32,
pub height: f32,
}Expand description
The viewBox of an SVG element: min-x, min-y, width, and height.
Fields§
§min_x: f32§min_y: f32§width: f32§height: f32Implementations§
Trait Implementations§
Source§impl AttributeValueViewParts for ViewBox
impl AttributeValueViewParts for ViewBox
Source§fn attribute_present(&self) -> bool
fn attribute_present(&self) -> bool
Returns whether the containing attribute should be rendered. Read more
Source§fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
fn into_view_parts(self, _cx: &Cx, parts: &mut PartsWriter<'_>)
Appends this attribute value to the view being built.
impl Copy for ViewBox
impl StructuralPartialEq for ViewBox
Auto Trait Implementations§
impl Freeze for ViewBox
impl RefUnwindSafe for ViewBox
impl Send for ViewBox
impl Sync for ViewBox
impl Unpin for ViewBox
impl UnsafeUnpin for ViewBox
impl UnwindSafe for ViewBox
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