[−][src]Struct skia_bindings::GrSurface
Fields
_base: GrGpuResource
fConfig: GrPixelConfig
fWidth: c_int
fHeight: c_int
fSurfaceFlags: GrInternalSurfaceFlags
fReleaseHelper: 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]
&mut self,
proc_: GrSurface_ReleaseProc,
ctx: GrSurface_ReleaseCtx
)
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]
desc: *const GrSurfaceDesc,
useNextPow2: bool
) -> usize
pub unsafe fn ComputeSize(
config: GrPixelConfig,
width: c_int,
height: c_int,
colorSamplesPerPixel: c_int,
arg1: GrMipMapped,
useNextPow2: bool
) -> usize
[src]
config: GrPixelConfig,
width: c_int,
height: c_int,
colorSamplesPerPixel: c_int,
arg1: GrMipMapped,
useNextPow2: bool
) -> usize
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
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,