pub struct LineStyle {
pub color: ColorRef,
pub width: f64,
pub dash: StrokeDash,
pub dash_pattern: Option<Vec<f64>>,
pub line_type: LineRenderType,
pub compound_component: bool,
pub preserve_fractional_position: bool,
pub start_arrow: ArrowStyle,
pub end_arrow: ArrowStyle,
pub start_arrow_size: u8,
pub end_arrow_size: u8,
pub shadow: Option<ShadowStyle>,
}Expand description
선 렌더링 스타일
Fields§
§color: ColorRef선 색상
width: f64선 두께 (px)
dash: StrokeDash선 종류
dash_pattern: Option<Vec<f64>>Explicit physical on/off lengths in scene coordinates. A native border can have metrics different from the generic shape dash preset.
line_type: LineRenderType선 렌더링 종류 (이중선/삼중선 등)
compound_component: bool부모의 다중선 기하 또는 겹쳐 칠하는 순서를 분해한 구성 획이다. 각 획을 다시 픽셀 중심에 옮기면 공통 간격과 복합 coverage가 바뀐다.
preserve_fractional_position: bool원본 프레임의 분수 장치 좌표를 유지한다. 최소 획 폭과 별개이며, 용지 테두리를 표 격자처럼 화소 중심에 옮기지 않는다.
start_arrow: ArrowStyle시작 화살표
end_arrow: ArrowStyle끝 화살표
start_arrow_size: u8시작 화살표 크기 (HWP bits 22-25: 0=작은-작은 ~ 8=큰-큰)
end_arrow_size: u8끝 화살표 크기 (HWP bits 26-29)
shadow: Option<ShadowStyle>그림자
Trait Implementations§
Auto Trait Implementations§
impl Forget for LineStyle
impl Freeze for LineStyle
impl Move for LineStyle
impl RefUnwindSafe for LineStyle
impl Send for LineStyle
impl Sync for LineStyle
impl Unpin for LineStyle
impl UnsafeUnpin for LineStyle
impl UnwindSafe for LineStyle
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
Converts
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> ⓘ
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.