#[repr(C)]pub struct msdfgen_Shape {
pub contours: [u64; 3],
pub inverseYAxis: bool,
}Expand description
Vector shape representation.
Fields§
§contours: [u64; 3]The list of contours the shape consists of.
inverseYAxis: boolSpecifies whether the shape uses bottom-to-top (false) or top-to-bottom (true) Y coordinates.
Implementations§
Source§impl msdfgen_Shape
impl msdfgen_Shape
pub unsafe fn addContour(&mut self, contour: *const msdfgen_Contour)
pub unsafe fn addContour1(&mut self) -> *mut msdfgen_Contour
pub unsafe fn normalize(&mut self)
pub unsafe fn validate(&self) -> bool
pub unsafe fn bound(&self, l: *mut f64, b: *mut f64, r: *mut f64, t: *mut f64)
pub unsafe fn boundMiters( &self, l: *mut f64, b: *mut f64, r: *mut f64, t: *mut f64, border: f64, miterLimit: f64, polarity: c_int, )
pub unsafe fn getBounds( &self, border: f64, miterLimit: f64, polarity: c_int, ) -> msdfgen_Shape_Bounds
pub unsafe fn scanline(&self, line: *mut msdfgen_Scanline, y: f64)
pub unsafe fn edgeCount(&self) -> c_int
pub unsafe fn orientContours(&mut self)
pub unsafe fn new() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for msdfgen_Shape
impl RefUnwindSafe for msdfgen_Shape
impl Send for msdfgen_Shape
impl Sync for msdfgen_Shape
impl Unpin for msdfgen_Shape
impl UnwindSafe for msdfgen_Shape
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