#[repr(C)]pub struct Dwg_HATCH_DefLine {
pub parent: *mut c_void,
pub angle: BITCODE_BD,
pub pt0: BITCODE_2RD,
pub offset: BITCODE_2RD,
pub num_dashes: BITCODE_BS,
pub dashes: *mut BITCODE_BD,
}Expand description
_dwg_HATCH_DefLine (dwg.h) – one pattern-fill “definition line”: a
family of parallel lines (angle/pt0/offset, in the pattern’s own
unscaled/unrotated definition space) plus an optional dash pattern
(dashes, positive = dash length, negative = gap length; empty means a
continuous line) – one of Dwg_Entity_HATCH.deflines. Unlike
Dwg_HATCH_Path/PathSeg/ControlPoint above, this one is reachable
through dynapi (num_deflines/deflines are plain top-level
Dwg_Entity_HATCH fields, not nested inside a Path/PathSeg element) –
but it still has to be hand-defined and blocklisted the same way,
because allowlisting it directly forces bindgen to also generate a real
(non-opaque) _dwg_entity_HATCH for its parent field to point at
(nothing else in this crate ever allowlists _dwg_entity_HATCH; HATCH’s
own fields are all read through dynapi’s untyped void*), and
_dwg_entity_HATCH itself then hits the identical struct-codegen
failure. parent is left as an untyped *mut c_void here specifically
to avoid that cascade, matching the other three HATCH sub-structs’ own
parent fields. pt0/offset are declared BITCODE_2BD in dwg.h, but
typed BITCODE_2RD here instead – same interchangeable-once-decoded
reasoning as Point2D’s own doc comment (both are just 2 doubles with
no padding); BITCODE_2RD is already a bound type elsewhere in this
crate (Dwg_HATCH_PathSeg), while nothing else pulls in the separate
BITCODE_2BD alias, so reusing it avoids introducing a type bindgen
would otherwise never generate.
Fields§
§parent: *mut c_void§angle: BITCODE_BD§pt0: BITCODE_2RD§offset: BITCODE_2RD§num_dashes: BITCODE_BS§dashes: *mut BITCODE_BDTrait Implementations§
Source§impl Clone for Dwg_HATCH_DefLine
impl Clone for Dwg_HATCH_DefLine
Source§fn clone(&self) -> Dwg_HATCH_DefLine
fn clone(&self) -> Dwg_HATCH_DefLine
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more