pub struct PageDef {Show 13 fields
pub width: HwpUnit,
pub height: HwpUnit,
pub margin_left: HwpUnit,
pub margin_right: HwpUnit,
pub margin_top: HwpUnit,
pub margin_bottom: HwpUnit,
pub margin_header: HwpUnit,
pub margin_footer: HwpUnit,
pub margin_gutter: HwpUnit,
pub pagination_bottom_tolerance: HwpUnit,
pub attr: u32,
pub landscape: bool,
pub binding: BindingMethod,
}Expand description
용지 설정 (HWPTAG_PAGE_DEF)
Fields§
§width: HwpUnit용지 가로 크기
height: HwpUnit용지 세로 크기
margin_left: HwpUnit왼쪽 여백
margin_right: HwpUnit오른쪽 여백
margin_top: HwpUnit위 여백
margin_bottom: HwpUnit아래 여백
margin_header: HwpUnit머리말 여백
꼬리말 여백
margin_gutter: HwpUnit제본 여백
pagination_bottom_tolerance: HwpUnit페이지네이션 하단 허용치 (HWPUNIT). margin_bottom 을 변조하지 않고 paginator 에게만 추가 공간을 허용할 때 사용. 기본 0.
attr: u32속성 비트 플래그
landscape: bool용지 방향 (0: 좁게/세로, 1: 넓게/가로)
binding: BindingMethod제책 방법
Implementations§
Source§impl PageDef
impl PageDef
Sourcepub fn a4_default() -> Self
pub fn a4_default() -> Self
한컴 새 문서 기본 용지: A4 세로(210×297mm = 59528×84188 HWPUNIT), 여백 좌우 30mm / 위 20mm / 아래 15mm / 머리말·꼬리말 15mm / 제본 0.
Trait Implementations§
Auto Trait Implementations§
impl Forget for PageDef
impl Freeze for PageDef
impl Move for PageDef
impl RefUnwindSafe for PageDef
impl Send for PageDef
impl Sync for PageDef
impl Unpin for PageDef
impl UnsafeUnpin for PageDef
impl UnwindSafe for PageDef
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.