Skip to main content

Dwg_HATCH_DefLine

Struct Dwg_HATCH_DefLine 

Source
#[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_BD

Trait Implementations§

Source§

impl Clone for Dwg_HATCH_DefLine

Source§

fn clone(&self) -> Dwg_HATCH_DefLine

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Dwg_HATCH_DefLine

Source§

impl Debug for Dwg_HATCH_DefLine

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.