#[repr(C)]pub struct NVGparams {Show 15 fields
pub userPtr: c_ulonglong,
pub edgeAntiAlias: c_int,
pub renderCreate: Option<unsafe extern "C" fn(uptr: c_ulonglong) -> c_int>,
pub renderCreateTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, type_: c_int, w: c_int, h: c_int, imageFlags: c_int, data: *const c_uchar, debugName: *const c_char) -> c_int>,
pub renderDeleteTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int) -> c_int>,
pub renderUpdateTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int, x: c_int, y: c_int, w: c_int, h: c_int, data: *const c_uchar) -> c_int>,
pub renderGetTextureSize: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int, w: *mut c_int, h: *mut c_int) -> c_int>,
pub renderViewport: Option<unsafe extern "C" fn(uptr: c_ulonglong, width: f32, height: f32, devicePixelRatio: f32)>,
pub renderCancel: Option<unsafe extern "C" fn(uptr: c_ulonglong)>,
pub renderFlush: Option<unsafe extern "C" fn(uptr: c_ulonglong)>,
pub renderFill: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, fringe: f32, bounds: *const f32, paths: *const NVGpath, npaths: c_int)>,
pub renderStroke: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, fringe: f32, strokeWidth: f32, paths: *const NVGpath, npaths: c_int)>,
pub renderTriangles: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, verts: *const NVGvertex, nverts: c_int)>,
pub renderClearStencil: Option<unsafe extern "C" fn(uptr: c_ulonglong)>,
pub renderDelete: Option<unsafe extern "C" fn(uptr: c_ulonglong)>,
}
Fields§
§userPtr: c_ulonglong
§edgeAntiAlias: c_int
§renderCreate: Option<unsafe extern "C" fn(uptr: c_ulonglong) -> c_int>
§renderCreateTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, type_: c_int, w: c_int, h: c_int, imageFlags: c_int, data: *const c_uchar, debugName: *const c_char) -> c_int>
§renderDeleteTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int) -> c_int>
§renderUpdateTexture: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int, x: c_int, y: c_int, w: c_int, h: c_int, data: *const c_uchar) -> c_int>
§renderGetTextureSize: Option<unsafe extern "C" fn(uptr: c_ulonglong, image: c_int, w: *mut c_int, h: *mut c_int) -> c_int>
§renderViewport: Option<unsafe extern "C" fn(uptr: c_ulonglong, width: f32, height: f32, devicePixelRatio: f32)>
§renderCancel: Option<unsafe extern "C" fn(uptr: c_ulonglong)>
§renderFlush: Option<unsafe extern "C" fn(uptr: c_ulonglong)>
§renderFill: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, fringe: f32, bounds: *const f32, paths: *const NVGpath, npaths: c_int)>
§renderStroke: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, fringe: f32, strokeWidth: f32, paths: *const NVGpath, npaths: c_int)>
§renderTriangles: Option<unsafe extern "C" fn(uptr: c_ulonglong, paint: *mut NVGpaint, compositeOperation: NVGcompositeOperationState, scissor: *mut NVGscissor, verts: *const NVGvertex, nverts: c_int)>
§renderClearStencil: Option<unsafe extern "C" fn(uptr: c_ulonglong)>
§renderDelete: Option<unsafe extern "C" fn(uptr: c_ulonglong)>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NVGparams
impl RefUnwindSafe for NVGparams
impl Send for NVGparams
impl Sync for NVGparams
impl Unpin for NVGparams
impl UnwindSafe for NVGparams
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