pub struct PointRegion(/* private fields */);
Available on crate feature
v1_18
only.Implementations§
Source§impl PointRegion
impl PointRegion
Sourcepub fn point(&self) -> (i32, i32)
pub fn point(&self) -> (i32, i32)
Get the values for a point region.
This returns the coordinates in the reference coordinate space (from the parent region item).
Sourcepub fn point_transformed(&self, image_id: ItemId) -> (f64, f64)
pub fn point_transformed(&self, image_id: ItemId) -> (f64, f64)
Get the transformed values for a point region.
This returns the coordinates in pixels after all transformative properties have been applied.
Auto Trait Implementations§
impl Freeze for PointRegion
impl RefUnwindSafe for PointRegion
impl !Send for PointRegion
impl !Sync for PointRegion
impl Unpin for PointRegion
impl UnwindSafe for PointRegion
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