pub struct NodeGeometry {
pub x: Option<f64>,
pub y: Option<f64>,
pub w: Option<f64>,
pub h: Option<f64>,
pub x1: Option<f64>,
pub y1: Option<f64>,
pub x2: Option<f64>,
pub y2: Option<f64>,
pub point_count: Option<usize>,
}Expand description
The geometry summary emitted per node. Missing fields are None when the
node kind does not carry that property (e.g. polygon has no bbox).
Fields§
§x: Option<f64>Left edge (px) for bbox nodes.
y: Option<f64>Top edge (px) for bbox nodes.
w: Option<f64>Width (px) for bbox nodes.
h: Option<f64>Height (px) for bbox nodes.
x1: Option<f64>First endpoint x (px) for line.
y1: Option<f64>First endpoint y (px) for line.
x2: Option<f64>Second endpoint x (px) for line.
y2: Option<f64>Second endpoint y (px) for line.
point_count: Option<usize>Point count for polygon/polyline.
Trait Implementations§
Source§impl Clone for NodeGeometry
impl Clone for NodeGeometry
Source§fn clone(&self) -> NodeGeometry
fn clone(&self) -> NodeGeometry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NodeGeometry
impl Debug for NodeGeometry
Auto Trait Implementations§
impl Freeze for NodeGeometry
impl RefUnwindSafe for NodeGeometry
impl Send for NodeGeometry
impl Sync for NodeGeometry
impl Unpin for NodeGeometry
impl UnsafeUnpin for NodeGeometry
impl UnwindSafe for NodeGeometry
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,
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
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.