pub struct CtDrawParam {
pub id: StId,
pub relative: Option<StId>,
pub line_width: Option<f64>,
pub join: Option<String>,
pub cap: Option<String>,
pub miter_limit: Option<f64>,
pub dash_offset: Option<f64>,
pub dash_pattern: Option<StArray<f64>>,
pub fill_color: Option<CtColor>,
pub stroke_color: Option<CtColor>,
}Expand description
CT_DrawParam:绘制参数(见 8.2、表 24)。
绘制参数可通过 Relative 继承另一绘制参数;图元未显式声明的颜色、线宽
等属性将回退到其引用的绘制参数。
Fields§
§id: StId资源标识(必选)。
relative: Option<StId>基础绘制参数标识,本参数在其基础上覆盖(可选)。
line_width: Option<f64>线宽,单位为毫米,默认 0.353(可选)。
join: Option<String>线条连接样式(可选)。
cap: Option<String>线条端点样式(可选)。
miter_limit: Option<f64>斜接限制(可选)。
dash_offset: Option<f64>虚线起始相位(可选)。
dash_pattern: Option<StArray<f64>>虚线重复样式(可选)。
fill_color: Option<CtColor>填充颜色(可选)。
stroke_color: Option<CtColor>勾边颜色(可选)。
Trait Implementations§
Source§impl Clone for CtDrawParam
impl Clone for CtDrawParam
Source§fn clone(&self) -> CtDrawParam
fn clone(&self) -> CtDrawParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CtDrawParam
impl Debug for CtDrawParam
Source§impl Default for CtDrawParam
impl Default for CtDrawParam
Source§fn default() -> CtDrawParam
fn default() -> CtDrawParam
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CtDrawParam
impl<'de> Deserialize<'de> for CtDrawParam
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CtDrawParam
impl RefUnwindSafe for CtDrawParam
impl Send for CtDrawParam
impl Sync for CtDrawParam
impl Unpin for CtDrawParam
impl UnsafeUnpin for CtDrawParam
impl UnwindSafe for CtDrawParam
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