[][src]Struct skia_bindings::GrSurface

#[repr(C)]
pub struct GrSurface {
    pub _base: GrGpuResource,
    pub fConfig: GrPixelConfig,
    pub fWidth: c_int,
    pub fHeight: c_int,
    pub fSurfaceFlags: GrInternalSurfaceFlags,
    pub fReleaseHelper: sk_sp<GrRefCntedCallback>,
}

Fields

_base: GrGpuResourcefConfig: GrPixelConfigfWidth: c_intfHeight: c_intfSurfaceFlags: GrInternalSurfaceFlagsfReleaseHelper: sk_sp<GrRefCntedCallback>

Methods

impl GrSurface[src]

pub unsafe fn width(&self) -> c_int[src]

pub unsafe fn height(&self) -> c_int[src]

pub unsafe fn getBoundsRect(&self) -> SkRect[src]

pub unsafe fn config(&self) -> GrPixelConfig[src]

pub unsafe fn setRelease(&mut self, releaseHelper: sk_sp<GrRefCntedCallback>)[src]

pub unsafe fn setRelease1(
    &mut self,
    proc_: GrSurface_ReleaseProc,
    ctx: GrSurface_ReleaseCtx
)
[src]

pub unsafe fn surfacePriv(&mut self) -> GrSurfacePriv[src]

pub unsafe fn surfacePriv1(&self) -> GrSurfacePriv[src]

pub unsafe fn WorstCaseSize(
    desc: *const GrSurfaceDesc,
    useNextPow2: bool
) -> usize
[src]

pub unsafe fn ComputeSize(
    config: GrPixelConfig,
    width: c_int,
    height: c_int,
    colorSamplesPerPixel: c_int,
    arg1: GrMipMapped,
    useNextPow2: bool
) -> usize
[src]

pub unsafe fn readOnly(&self) -> bool[src]

pub unsafe fn setHasMixedSamples(&mut self)[src]

pub unsafe fn hasMixedSamples(&self) -> bool[src]

pub unsafe fn setGLRTFBOIDIs0(&mut self)[src]

pub unsafe fn glRTFBOIDis0(&self) -> bool[src]

pub unsafe fn setReadOnly(&mut self)[src]

pub unsafe fn hasPendingRead(&self) -> bool[src]

pub unsafe fn hasPendingWrite(&self) -> bool[src]

pub unsafe fn hasPendingIO(&self) -> bool[src]

pub unsafe fn new(gpu: *mut GrGpu, desc: *const GrSurfaceDesc) -> Self[src]

Trait Implementations

impl Debug for GrSurface[src]

Auto Trait Implementations

impl !Sync for GrSurface

impl !Send for GrSurface

impl Unpin for GrSurface

impl !RefUnwindSafe for GrSurface

impl !UnwindSafe for GrSurface

Blanket Implementations

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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