pub struct RingMark {
pub color: Option<Color>,
pub rx: Option<f32>,
pub ry: Option<f32>,
pub width: Option<f32>,
pub each: bool,
}Expand description
圈注参数。半径给定后圈的大小与文字宽窄无关——日历里「1」和「10」能圈出同样大的圈。
Fields§
§color: Option<Color>描边颜色;None = 跟随文字墨色。
rx: Option<f32>横向半径(逻辑像素);None = 按文字宽自适应。
ry: Option<f32>纵向半径(逻辑像素);None 且 rx 有值 = 取 rx(正圆),都缺 = 按字高自适应。
width: Option<f32>线宽(逻辑像素);None = 0.07 倍字号。
each: bool逐字圈:整段一字一圈(空白跳过),全自适应时缺省正圆;false = 整段一个圈
(范围圈,自适应为扁椭圆)。
Trait Implementations§
impl Copy for RingMark
impl StructuralPartialEq for RingMark
Auto Trait Implementations§
impl Freeze for RingMark
impl RefUnwindSafe for RingMark
impl Send for RingMark
impl Sync for RingMark
impl Unpin for RingMark
impl UnsafeUnpin for RingMark
impl UnwindSafe for RingMark
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