pub struct LineSeg {
pub textpos: u32,
pub vertpos: i32,
pub vertsize: i32,
pub textheight: i32,
pub baseline: i32,
pub spacing: i32,
pub horzpos: i32,
pub horzsize: i32,
pub flags: u32,
}Expand description
한 줄의 조판 결과 (HWPX <hp:lineseg> 1개 / HWP5 LINE_SEG 36바이트 1개).
모든 좌표·크기 단위는 HWPUNIT (1pt = 100). vertpos 는 본문 흐름
기준 상대값이며 쪽 단위로 리셋된다 (표 셀 안에서는 셀 상대값).
Fields§
§textpos: u32줄 시작 텍스트 위치 (문단 텍스트의 UTF-16 코드유닛 오프셋).
vertpos: i32줄 세로 위치 (컨테이너 상대, 쪽/셀 단위 리셋).
vertsize: i32줄 전체 높이.
textheight: i32텍스트 부분 높이.
baseline: i32줄 상단에서 베이스라인까지 거리.
spacing: i32줄 간격 (다음 줄과의 간격).
horzpos: i32컬럼 기준 가로 시작 위치.
horzsize: i32줄 가로 폭 (컬럼 폭).
flags: u32줄 플래그 비트필드 (wire 그대로 보존 — 해석하지 않음).
Trait Implementations§
impl Copy for LineSeg
Source§impl<'de> Deserialize<'de> for LineSeg
impl<'de> Deserialize<'de> for LineSeg
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
impl Eq for LineSeg
Source§impl JsonSchema for LineSeg
impl JsonSchema for LineSeg
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for LineSeg
Auto Trait Implementations§
impl Freeze for LineSeg
impl RefUnwindSafe for LineSeg
impl Send for LineSeg
impl Sync for LineSeg
impl Unpin for LineSeg
impl UnsafeUnpin for LineSeg
impl UnwindSafe for LineSeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.