#[repr(C)]pub struct msdfgen_Projection {
pub scale: msdfgen_Vector2,
pub translate: msdfgen_Vector2,
}Expand description
A transformation from shape coordinates to pixel coordinates.
Fields§
§scale: msdfgen_Vector2§translate: msdfgen_Vector2Implementations§
Source§impl msdfgen_Projection
impl msdfgen_Projection
pub unsafe fn project(&self, coord: *const msdfgen_Point2) -> msdfgen_Point2
pub unsafe fn unproject(&self, coord: *const msdfgen_Point2) -> msdfgen_Point2
pub unsafe fn projectVector( &self, vector: *const msdfgen_Vector2, ) -> msdfgen_Vector2
pub unsafe fn unprojectVector( &self, vector: *const msdfgen_Vector2, ) -> msdfgen_Vector2
pub unsafe fn projectX(&self, x: f64) -> f64
pub unsafe fn projectY(&self, y: f64) -> f64
pub unsafe fn unprojectX(&self, x: f64) -> f64
pub unsafe fn unprojectY(&self, y: f64) -> f64
pub unsafe fn new() -> Self
pub unsafe fn new1( scale: *const msdfgen_Vector2, translate: *const msdfgen_Vector2, ) -> Self
Trait Implementations§
Source§impl Clone for msdfgen_Projection
impl Clone for msdfgen_Projection
Source§fn clone(&self) -> msdfgen_Projection
fn clone(&self) -> msdfgen_Projection
Returns a duplicate of the value. Read more
1.0.0 · 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 msdfgen_Projection
impl Debug for msdfgen_Projection
impl Copy for msdfgen_Projection
Auto Trait Implementations§
impl Freeze for msdfgen_Projection
impl RefUnwindSafe for msdfgen_Projection
impl Send for msdfgen_Projection
impl Sync for msdfgen_Projection
impl Unpin for msdfgen_Projection
impl UnwindSafe for msdfgen_Projection
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