pub struct SVG {Show 19 fields
pub clip_path: T,
pub d: T,
pub cx: T,
pub cy: T,
pub mask_image: T,
pub mask_position_x: T,
pub mask_position_y: T,
pub mask_repeat: T,
pub mask_size: T,
pub r: T,
pub rx: T,
pub ry: T,
pub x: T,
pub y: T,
pub mask_type: T,
pub mask_mode: T,
pub mask_clip: T,
pub mask_origin: T,
pub mask_composite: T,
}Expand description
The SVG style struct.
Fields§
§clip_path: TThe clip-path computed value.
d: TThe d computed value.
cx: TThe cx computed value.
cy: TThe cy computed value.
mask_image: TThe mask-image computed value.
mask_position_x: TThe mask-position-x computed value.
mask_position_y: TThe mask-position-y computed value.
mask_repeat: TThe mask-repeat computed value.
mask_size: TThe mask-size computed value.
r: TThe r computed value.
rx: TThe rx computed value.
ry: TThe ry computed value.
x: TThe x computed value.
y: TThe y computed value.
mask_type: TThe mask-type computed value.
mask_mode: TThe mask-mode computed value.
mask_clip: TThe mask-clip computed value.
mask_origin: TThe mask-origin computed value.
mask_composite: TThe mask-composite computed value.
Implementations§
Source§impl SVG
impl SVG
Sourcepub fn set_clip_path(&mut self, v: T)
pub fn set_clip_path(&mut self, v: T)
Set clip-path.
Sourcepub fn copy_clip_path_from(&mut self, other: &Self)
pub fn copy_clip_path_from(&mut self, other: &Self)
Set clip-path from other struct.
Sourcepub fn reset_clip_path(&mut self, other: &Self)
pub fn reset_clip_path(&mut self, other: &Self)
Reset clip-path from the initial struct.
Sourcepub fn get_clip_path(&self) -> &T
pub fn get_clip_path(&self) -> &T
Get a reference to the computed value for clip-path.
Sourcepub fn slow_clone_clip_path(&self) -> T
pub fn slow_clone_clip_path(&self) -> T
Clone the computed value for clip-path. Prefer
get_clip_path where a reference is enough.
Sourcepub fn clip_path_equals(&self, other: &Self) -> bool
pub fn clip_path_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for clip-path.
Sourcepub fn copy_d_from(&mut self, other: &Self)
pub fn copy_d_from(&mut self, other: &Self)
Set d from other struct.
Sourcepub fn slow_clone_d(&self) -> T
pub fn slow_clone_d(&self) -> T
Clone the computed value for d. Prefer
get_d where a reference is enough.
Sourcepub fn d_equals(&self, other: &Self) -> bool
pub fn d_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for d.
Sourcepub fn copy_cx_from(&mut self, other: &Self)
pub fn copy_cx_from(&mut self, other: &Self)
Set cx from other struct.
Sourcepub fn slow_clone_cx(&self) -> T
pub fn slow_clone_cx(&self) -> T
Clone the computed value for cx. Prefer
get_cx where a reference is enough.
Sourcepub fn cx_equals(&self, other: &Self) -> bool
pub fn cx_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for cx.
Sourcepub fn copy_cy_from(&mut self, other: &Self)
pub fn copy_cy_from(&mut self, other: &Self)
Set cy from other struct.
Sourcepub fn slow_clone_cy(&self) -> T
pub fn slow_clone_cy(&self) -> T
Clone the computed value for cy. Prefer
get_cy where a reference is enough.
Sourcepub fn cy_equals(&self, other: &Self) -> bool
pub fn cy_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for cy.
Sourcepub fn set_mask_image(&mut self, v: T)
pub fn set_mask_image(&mut self, v: T)
Set mask-image.
Sourcepub fn copy_mask_image_from(&mut self, other: &Self)
pub fn copy_mask_image_from(&mut self, other: &Self)
Set mask-image from other struct.
Sourcepub fn reset_mask_image(&mut self, other: &Self)
pub fn reset_mask_image(&mut self, other: &Self)
Reset mask-image from the initial struct.
Sourcepub fn slow_clone_mask_image(&self) -> T
pub fn slow_clone_mask_image(&self) -> T
Clone the computed value for mask-image. Prefer
get_mask_image where a reference is enough.
Sourcepub fn mask_image_equals(&self, other: &Self) -> bool
pub fn mask_image_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-image.
Sourcepub fn set_mask_position_x(&mut self, v: T)
pub fn set_mask_position_x(&mut self, v: T)
Set mask-position-x.
Sourcepub fn copy_mask_position_x_from(&mut self, other: &Self)
pub fn copy_mask_position_x_from(&mut self, other: &Self)
Set mask-position-x from other struct.
Sourcepub fn reset_mask_position_x(&mut self, other: &Self)
pub fn reset_mask_position_x(&mut self, other: &Self)
Reset mask-position-x from the initial struct.
Sourcepub fn slow_clone_mask_position_x(&self) -> T
pub fn slow_clone_mask_position_x(&self) -> T
Clone the computed value for mask-position-x. Prefer
get_mask_position_x where a reference is enough.
Sourcepub fn mask_position_x_equals(&self, other: &Self) -> bool
pub fn mask_position_x_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-position-x.
Sourcepub fn set_mask_position_y(&mut self, v: T)
pub fn set_mask_position_y(&mut self, v: T)
Set mask-position-y.
Sourcepub fn copy_mask_position_y_from(&mut self, other: &Self)
pub fn copy_mask_position_y_from(&mut self, other: &Self)
Set mask-position-y from other struct.
Sourcepub fn reset_mask_position_y(&mut self, other: &Self)
pub fn reset_mask_position_y(&mut self, other: &Self)
Reset mask-position-y from the initial struct.
Sourcepub fn slow_clone_mask_position_y(&self) -> T
pub fn slow_clone_mask_position_y(&self) -> T
Clone the computed value for mask-position-y. Prefer
get_mask_position_y where a reference is enough.
Sourcepub fn mask_position_y_equals(&self, other: &Self) -> bool
pub fn mask_position_y_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-position-y.
Sourcepub fn set_mask_repeat(&mut self, v: T)
pub fn set_mask_repeat(&mut self, v: T)
Set mask-repeat.
Sourcepub fn copy_mask_repeat_from(&mut self, other: &Self)
pub fn copy_mask_repeat_from(&mut self, other: &Self)
Set mask-repeat from other struct.
Sourcepub fn reset_mask_repeat(&mut self, other: &Self)
pub fn reset_mask_repeat(&mut self, other: &Self)
Reset mask-repeat from the initial struct.
Sourcepub fn slow_clone_mask_repeat(&self) -> T
pub fn slow_clone_mask_repeat(&self) -> T
Clone the computed value for mask-repeat. Prefer
get_mask_repeat where a reference is enough.
Sourcepub fn mask_repeat_equals(&self, other: &Self) -> bool
pub fn mask_repeat_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-repeat.
Sourcepub fn set_mask_size(&mut self, v: T)
pub fn set_mask_size(&mut self, v: T)
Set mask-size.
Sourcepub fn copy_mask_size_from(&mut self, other: &Self)
pub fn copy_mask_size_from(&mut self, other: &Self)
Set mask-size from other struct.
Sourcepub fn reset_mask_size(&mut self, other: &Self)
pub fn reset_mask_size(&mut self, other: &Self)
Reset mask-size from the initial struct.
Sourcepub fn slow_clone_mask_size(&self) -> T
pub fn slow_clone_mask_size(&self) -> T
Clone the computed value for mask-size. Prefer
get_mask_size where a reference is enough.
Sourcepub fn mask_size_equals(&self, other: &Self) -> bool
pub fn mask_size_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-size.
Sourcepub fn copy_r_from(&mut self, other: &Self)
pub fn copy_r_from(&mut self, other: &Self)
Set r from other struct.
Sourcepub fn slow_clone_r(&self) -> T
pub fn slow_clone_r(&self) -> T
Clone the computed value for r. Prefer
get_r where a reference is enough.
Sourcepub fn r_equals(&self, other: &Self) -> bool
pub fn r_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for r.
Sourcepub fn copy_rx_from(&mut self, other: &Self)
pub fn copy_rx_from(&mut self, other: &Self)
Set rx from other struct.
Sourcepub fn slow_clone_rx(&self) -> T
pub fn slow_clone_rx(&self) -> T
Clone the computed value for rx. Prefer
get_rx where a reference is enough.
Sourcepub fn rx_equals(&self, other: &Self) -> bool
pub fn rx_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for rx.
Sourcepub fn copy_ry_from(&mut self, other: &Self)
pub fn copy_ry_from(&mut self, other: &Self)
Set ry from other struct.
Sourcepub fn slow_clone_ry(&self) -> T
pub fn slow_clone_ry(&self) -> T
Clone the computed value for ry. Prefer
get_ry where a reference is enough.
Sourcepub fn ry_equals(&self, other: &Self) -> bool
pub fn ry_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for ry.
Sourcepub fn copy_x_from(&mut self, other: &Self)
pub fn copy_x_from(&mut self, other: &Self)
Set x from other struct.
Sourcepub fn slow_clone_x(&self) -> T
pub fn slow_clone_x(&self) -> T
Clone the computed value for x. Prefer
get_x where a reference is enough.
Sourcepub fn x_equals(&self, other: &Self) -> bool
pub fn x_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for x.
Sourcepub fn copy_y_from(&mut self, other: &Self)
pub fn copy_y_from(&mut self, other: &Self)
Set y from other struct.
Sourcepub fn slow_clone_y(&self) -> T
pub fn slow_clone_y(&self) -> T
Clone the computed value for y. Prefer
get_y where a reference is enough.
Sourcepub fn y_equals(&self, other: &Self) -> bool
pub fn y_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for y.
Sourcepub fn set_mask_type(&mut self, v: T)
pub fn set_mask_type(&mut self, v: T)
Set mask-type.
Sourcepub fn copy_mask_type_from(&mut self, other: &Self)
pub fn copy_mask_type_from(&mut self, other: &Self)
Set mask-type from other struct.
Sourcepub fn reset_mask_type(&mut self, other: &Self)
pub fn reset_mask_type(&mut self, other: &Self)
Reset mask-type from the initial struct.
Sourcepub fn get_mask_type(&self) -> &T
pub fn get_mask_type(&self) -> &T
Get a reference to the computed value for mask-type.
Sourcepub fn slow_clone_mask_type(&self) -> T
pub fn slow_clone_mask_type(&self) -> T
Clone the computed value for mask-type. Prefer
get_mask_type where a reference is enough.
Sourcepub fn mask_type_equals(&self, other: &Self) -> bool
pub fn mask_type_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-type.
Sourcepub fn set_mask_mode(&mut self, v: T)
pub fn set_mask_mode(&mut self, v: T)
Set mask-mode.
Sourcepub fn copy_mask_mode_from(&mut self, other: &Self)
pub fn copy_mask_mode_from(&mut self, other: &Self)
Set mask-mode from other struct.
Sourcepub fn reset_mask_mode(&mut self, other: &Self)
pub fn reset_mask_mode(&mut self, other: &Self)
Reset mask-mode from the initial struct.
Sourcepub fn slow_clone_mask_mode(&self) -> T
pub fn slow_clone_mask_mode(&self) -> T
Clone the computed value for mask-mode. Prefer
get_mask_mode where a reference is enough.
Sourcepub fn mask_mode_equals(&self, other: &Self) -> bool
pub fn mask_mode_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-mode.
Sourcepub fn set_mask_clip(&mut self, v: T)
pub fn set_mask_clip(&mut self, v: T)
Set mask-clip.
Sourcepub fn copy_mask_clip_from(&mut self, other: &Self)
pub fn copy_mask_clip_from(&mut self, other: &Self)
Set mask-clip from other struct.
Sourcepub fn reset_mask_clip(&mut self, other: &Self)
pub fn reset_mask_clip(&mut self, other: &Self)
Reset mask-clip from the initial struct.
Sourcepub fn slow_clone_mask_clip(&self) -> T
pub fn slow_clone_mask_clip(&self) -> T
Clone the computed value for mask-clip. Prefer
get_mask_clip where a reference is enough.
Sourcepub fn mask_clip_equals(&self, other: &Self) -> bool
pub fn mask_clip_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-clip.
Sourcepub fn set_mask_origin(&mut self, v: T)
pub fn set_mask_origin(&mut self, v: T)
Set mask-origin.
Sourcepub fn copy_mask_origin_from(&mut self, other: &Self)
pub fn copy_mask_origin_from(&mut self, other: &Self)
Set mask-origin from other struct.
Sourcepub fn reset_mask_origin(&mut self, other: &Self)
pub fn reset_mask_origin(&mut self, other: &Self)
Reset mask-origin from the initial struct.
Sourcepub fn slow_clone_mask_origin(&self) -> T
pub fn slow_clone_mask_origin(&self) -> T
Clone the computed value for mask-origin. Prefer
get_mask_origin where a reference is enough.
Sourcepub fn mask_origin_equals(&self, other: &Self) -> bool
pub fn mask_origin_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-origin.
Sourcepub fn set_mask_composite(&mut self, v: T)
pub fn set_mask_composite(&mut self, v: T)
Set mask-composite.
Sourcepub fn copy_mask_composite_from(&mut self, other: &Self)
pub fn copy_mask_composite_from(&mut self, other: &Self)
Set mask-composite from other struct.
Sourcepub fn reset_mask_composite(&mut self, other: &Self)
pub fn reset_mask_composite(&mut self, other: &Self)
Reset mask-composite from the initial struct.
Sourcepub fn slow_clone_mask_composite(&self) -> T
pub fn slow_clone_mask_composite(&self) -> T
Clone the computed value for mask-composite. Prefer
get_mask_composite where a reference is enough.
Sourcepub fn mask_composite_equals(&self, other: &Self) -> bool
pub fn mask_composite_equals(&self, other: &Self) -> bool
Whether self and other have the same computed value for mask-composite.
Trait Implementations§
Source§impl MallocSizeOf for SVG
impl MallocSizeOf for SVG
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for SVG
Auto Trait Implementations§
impl Freeze for SVG
impl RefUnwindSafe for SVG
impl Send for SVG
impl Sync for SVG
impl Unpin for SVG
impl UnsafeUnpin for SVG
impl UnwindSafe for SVG
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more