pub struct Ink { /* private fields */ }Expand description
An ink object.
Implementations§
Source§impl Ink
impl Ink
Sourcepub fn ink_strokes(&self) -> &[InkStroke]
pub fn ink_strokes(&self) -> &[InkStroke]
The ink strokes contained in this ink object.
Sourcepub fn bounding_box(&self) -> Option<InkBoundingBox>
pub fn bounding_box(&self) -> Option<InkBoundingBox>
The ink object’s bounding box.
Sourcepub fn offset_horizontal(&self) -> Option<f32>
pub fn offset_horizontal(&self) -> Option<f32>
The horizontal offset from the page origin in half-inch increments.
See [MS-ONE] 2.3.18.
Sourcepub fn offset_vertical(&self) -> Option<f32>
pub fn offset_vertical(&self) -> Option<f32>
The vertical offset from the page origin in half-inch increments.
See [MS-ONE] 2.3.19.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Ink
impl RefUnwindSafe for Ink
impl Send for Ink
impl Sync for Ink
impl Unpin for Ink
impl UnwindSafe for Ink
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 more