pub fn create(fs_ctx: sys::FsContext) -> Option<Self> {
        let uninit = std::mem::MaybeUninit::<sys::NVGparams>::zeroed();
        let mut params = unsafe { uninit.assume_init() };
        params.userPtr = fs_ctx;
        params.edgeAntiAlias = 1;

        let ctx = unsafe { sys::nvgCreateInternal(&mut params) };
        if ctx.is_null() {
            None
        } else {
            Some(Self { ctx })
        }
    }
/// Create a NanoVG render context from an `FsContext`.
Create a NanoVG render context from an `FsContext`.
Create a NanoVG render context from an ` FsContext ` .
pub fn create(fs_ctx: sys::FsContext) -> Option<Self> {
        let uninit = std::mem::MaybeUninit::<sys::NVGparams>::zeroed();
        let mut params = unsafe { uninit.assume_init() };
        params.userPtr = fs_ctx;
        params.edgeAntiAlias = 1;
        let ctx = unsafe { sys::nvgCreateInternal(&mut params) };
        if ctx.is_null() {
            None
        } else {
            Some(Self { ctx })
        }
    }
pub fn create ( fs_ctx : sys :: FsContext ) -> Option < Self > { let uninit = std :: mem :: MaybeUninit :: < sys :: NVGparams > :: zeroed ( ) ; let mut params = unsafe { uninit . assume_init ( ) } ; params . userPtr = fs_ctx ; params . edgeAntiAlias = 1 ; let ctx = unsafe { sys :: nvgCreateInternal ( & mut params ) } ; if ctx . is_null ( ) { None } else { Some ( Self { ctx } ) } }
Create a NanoVG render context from an `FsContext`.
Create a NanoVG render context from an ` FsContext ` .
fs_ctx
sys::FsContext