pub struct MarkerHead {
pub attr: u32,
pub width_adjust: i16,
pub text_distance: i16,
pub char_shape_id: u32,
pub reference_width_em: Option<f32>,
}Expand description
목록 마커의 문단 머리 속성. 저장 형식이 아니라 사전 계산한 마커의 세션 값이다.
Fields§
§attr: u32HWP5 표 40: bit0-1 정렬, bit2 인스턴스 폭, bit3 자동 내어쓰기, bit4 본문과의 거리 단위(0 글자 크기 비율 · 1 HWPUNIT).
width_adjust: i16너비 보정값(HWPUNIT).
text_distance: i16본문과의 거리(bit4에 따라 % 또는 HWPUNIT).
char_shape_id: u32마커 글자 모양. u32::MAX는 참조 없이 문단 글자 모양을 따른다.
reference_width_em: Option<f32>번호 형식의 한 자리 참조 예약 폭(em). ASCII 반각 칸도 보존하며 실제 계수기의
자릿수·글꼴 전진과 구분한다. 내장 ^N은 수준당 1em이다.
글머리표에는 부여하지 않으며 bit2가 켜지면 실제 번호 폭을 사용한다.
Trait Implementations§
Source§impl Clone for MarkerHead
impl Clone for MarkerHead
impl Copy for MarkerHead
Source§impl Debug for MarkerHead
impl Debug for MarkerHead
Source§impl Default for MarkerHead
impl Default for MarkerHead
Source§impl PartialEq for MarkerHead
impl PartialEq for MarkerHead
impl StructuralPartialEq for MarkerHead
Auto Trait Implementations§
impl Forget for MarkerHead
impl Freeze for MarkerHead
impl Move for MarkerHead
impl RefUnwindSafe for MarkerHead
impl Send for MarkerHead
impl Sync for MarkerHead
impl Unpin for MarkerHead
impl UnsafeUnpin for MarkerHead
impl UnwindSafe for MarkerHead
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.