Struct msfs::sys::NVGparams

source ·
#[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§

source§

impl Clone for NVGparams

source§

fn clone(&self) -> NVGparams

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NVGparams

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Copy for NVGparams

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.