pub struct SvgRenderOptions {
pub tint: Color,
pub stroke_width_override: Option<f32>,
}Expand description
SVG 光栅化渲染选项。
Fields§
§tint: Color用于解析 currentColor 的前景色,其 Alpha 通道同时作为整幅 SVG 的整体不透明度。
stroke_width_override: Option<f32>可选描边宽度覆盖(在 SVG 用户坐标系单位下;None 表示遵循 SVG 内置 stroke-width)。
Trait Implementations§
Source§impl Clone for SvgRenderOptions
impl Clone for SvgRenderOptions
impl Copy for SvgRenderOptions
Source§impl Debug for SvgRenderOptions
impl Debug for SvgRenderOptions
Source§impl Default for SvgRenderOptions
impl Default for SvgRenderOptions
Source§impl PartialEq for SvgRenderOptions
impl PartialEq for SvgRenderOptions
impl StructuralPartialEq for SvgRenderOptions
Auto Trait Implementations§
impl Forget for SvgRenderOptions
impl Freeze for SvgRenderOptions
impl Move for SvgRenderOptions
impl RefUnwindSafe for SvgRenderOptions
impl Send for SvgRenderOptions
impl Sync for SvgRenderOptions
impl Unpin for SvgRenderOptions
impl UnsafeUnpin for SvgRenderOptions
impl UnwindSafe for SvgRenderOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FluentBuilder for T
impl<T> FluentBuilder for T
Source§fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
fn when(self, condition: bool, then: impl FnOnce(Self) -> Self) -> Self
当
condition 为 true 时执行闭包修饰自身,否则原样返回。Source§fn when_else(
self,
condition: bool,
then: impl FnOnce(Self) -> Self,
else_fn: impl FnOnce(Self) -> Self,
) -> Self
fn when_else( self, condition: bool, then: impl FnOnce(Self) -> Self, else_fn: impl FnOnce(Self) -> Self, ) -> Self
根据
condition 在两个修饰分支之间二选一。Source§fn when_some<O>(
self,
option: Option<O>,
then: impl FnOnce(Self, O) -> Self,
) -> Self
fn when_some<O>( self, option: Option<O>, then: impl FnOnce(Self, O) -> Self, ) -> Self
当
option 为 Some(value) 时执行闭包修饰自身,否则原样返回。