[][src]Struct blend2d_sys::BLContextVirt

#[repr(C)]
pub struct BLContextVirt {
    pub destroy: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>,
    pub flush: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, flags: u32) -> BLResult>,
    pub save: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, cookie: *mut BLContextCookie) -> BLResult>,
    pub restore: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, cookie: *const BLContextCookie) -> BLResult>,
    pub matrixOp: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, opType: u32, opData: *const c_void) -> BLResult>,
    pub userToMeta: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>,
    pub setHint: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, hintType: u32, value: u32) -> BLResult>,
    pub setHints: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, hints: *const BLContextHints) -> BLResult>,
    pub setFlattenMode: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, mode: u32) -> BLResult>,
    pub setFlattenTolerance: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, tolerance: f64) -> BLResult>,
    pub setApproximationOptions: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, options: *const BLApproximationOptions) -> BLResult>,
    pub setCompOp: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, compOp: u32) -> BLResult>,
    pub setGlobalAlpha: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, alpha: f64) -> BLResult>,
    pub setStyleAlpha: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, alpha: f64) -> BLResult>; 2],
    pub getStyle: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, object: *mut c_void) -> BLResult>; 2],
    pub getStyleRgba32: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba32: *mut u32) -> BLResult>; 2],
    pub getStyleRgba64: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba64: *mut u64) -> BLResult>; 2],
    pub setStyle: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, object: *const c_void) -> BLResult>; 2],
    pub setStyleRgba32: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba32: u32) -> BLResult>; 2],
    pub setStyleRgba64: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba64: u64) -> BLResult>; 2],
    pub setFillRule: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, fillRule: u32) -> BLResult>,
    pub setStrokeWidth: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, width: f64) -> BLResult>,
    pub setStrokeMiterLimit: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, miterLimit: f64) -> BLResult>,
    pub setStrokeCap: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, position: u32, strokeCap: u32) -> BLResult>,
    pub setStrokeCaps: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, strokeCap: u32) -> BLResult>,
    pub setStrokeJoin: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, strokeJoin: u32) -> BLResult>,
    pub setStrokeDashOffset: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, dashOffset: f64) -> BLResult>,
    pub setStrokeDashArray: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, dashArray: *const BLArrayCore) -> BLResult>,
    pub setStrokeTransformOrder: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, transformOrder: u32) -> BLResult>,
    pub setStrokeOptions: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, options: *const BLStrokeOptionsCore) -> BLResult>,
    pub clipToRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>,
    pub clipToRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>,
    pub restoreClipping: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>,
    pub clearAll: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>,
    pub clearRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>,
    pub clearRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>,
    pub fillAll: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>,
    pub fillRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>,
    pub fillRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>,
    pub fillPathD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, path: *const BLPathCore) -> BLResult>,
    pub fillGeometry: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, geometryType: u32, geometryData: *const c_void) -> BLResult>,
    pub fillTextI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>,
    pub fillTextD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>,
    pub fillGlyphRunI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>,
    pub fillGlyphRunD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>,
    pub strokeRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>,
    pub strokeRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>,
    pub strokePathD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, path: *const BLPathCore) -> BLResult>,
    pub strokeGeometry: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, geometryType: u32, geometryData: *const c_void) -> BLResult>,
    pub strokeTextI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>,
    pub strokeTextD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>,
    pub strokeGlyphRunI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>,
    pub strokeGlyphRunD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>,
    pub blitImageI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>,
    pub blitImageD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>,
    pub blitScaledImageI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>,
    pub blitScaledImageD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>,
}

Fields

destroy: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>flush: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, flags: u32) -> BLResult>save: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, cookie: *mut BLContextCookie) -> BLResult>restore: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, cookie: *const BLContextCookie) -> BLResult>matrixOp: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, opType: u32, opData: *const c_void) -> BLResult>userToMeta: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>setHint: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, hintType: u32, value: u32) -> BLResult>setHints: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, hints: *const BLContextHints) -> BLResult>setFlattenMode: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, mode: u32) -> BLResult>setFlattenTolerance: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, tolerance: f64) -> BLResult>setApproximationOptions: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, options: *const BLApproximationOptions) -> BLResult>setCompOp: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, compOp: u32) -> BLResult>setGlobalAlpha: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, alpha: f64) -> BLResult>setStyleAlpha: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, alpha: f64) -> BLResult>; 2]getStyle: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, object: *mut c_void) -> BLResult>; 2]getStyleRgba32: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba32: *mut u32) -> BLResult>; 2]getStyleRgba64: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba64: *mut u64) -> BLResult>; 2]setStyle: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, object: *const c_void) -> BLResult>; 2]setStyleRgba32: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba32: u32) -> BLResult>; 2]setStyleRgba64: [Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rgba64: u64) -> BLResult>; 2]setFillRule: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, fillRule: u32) -> BLResult>setStrokeWidth: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, width: f64) -> BLResult>setStrokeMiterLimit: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, miterLimit: f64) -> BLResult>setStrokeCap: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, position: u32, strokeCap: u32) -> BLResult>setStrokeCaps: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, strokeCap: u32) -> BLResult>setStrokeJoin: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, strokeJoin: u32) -> BLResult>setStrokeDashOffset: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, dashOffset: f64) -> BLResult>setStrokeDashArray: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, dashArray: *const BLArrayCore) -> BLResult>setStrokeTransformOrder: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, transformOrder: u32) -> BLResult>setStrokeOptions: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, options: *const BLStrokeOptionsCore) -> BLResult>clipToRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>clipToRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>restoreClipping: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>clearAll: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>clearRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>clearRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>fillAll: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl) -> BLResult>fillRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>fillRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>fillPathD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, path: *const BLPathCore) -> BLResult>fillGeometry: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, geometryType: u32, geometryData: *const c_void) -> BLResult>fillTextI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>fillTextD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>fillGlyphRunI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>fillGlyphRunD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>strokeRectI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI) -> BLResult>strokeRectD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect) -> BLResult>strokePathD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, path: *const BLPathCore) -> BLResult>strokeGeometry: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, geometryType: u32, geometryData: *const c_void) -> BLResult>strokeTextI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>strokeTextD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, text: *const c_void, size: usize, encoding: u32) -> BLResult>strokeGlyphRunI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>strokeGlyphRunD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, font: *const BLFontCore, glyphRun: *const BLGlyphRun) -> BLResult>blitImageI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPointI, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>blitImageD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, pt: *const BLPoint, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>blitScaledImageI: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRectI, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>blitScaledImageD: Option<unsafe extern "C" fn(impl_: *mut BLContextImpl, rect: *const BLRect, img: *const BLImageCore, imgArea: *const BLRectI) -> BLResult>

Trait Implementations

impl Clone for BLContextVirt[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for BLContextVirt[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]