pub trait IPresentationSurface_Impl: Sized + IPresentationContent_Impl {
    // Required methods
    fn SetBuffer(
        &self,
        presentationbuffer: Option<&IPresentationBuffer>,
    ) -> Result<()>;
    fn SetColorSpace(&self, colorspace: DXGI_COLOR_SPACE_TYPE) -> Result<()>;
    fn SetAlphaMode(&self, alphamode: DXGI_ALPHA_MODE) -> Result<()>;
    fn SetSourceRect(&self, sourcerect: *const RECT) -> Result<()>;
    fn SetTransform(
        &self,
        transform: *const PresentationTransform,
    ) -> Result<()>;
    fn RestrictToOutput(&self, output: Option<&IUnknown>) -> Result<()>;
    fn SetDisableReadback(&self, value: u8) -> Result<()>;
    fn SetLetterboxingMargins(
        &self,
        leftletterboxsize: f32,
        topletterboxsize: f32,
        rightletterboxsize: f32,
        bottomletterboxsize: f32,
    ) -> Result<()>;
}

Required Methods§

fn SetBuffer( &self, presentationbuffer: Option<&IPresentationBuffer>, ) -> Result<()>

fn SetColorSpace(&self, colorspace: DXGI_COLOR_SPACE_TYPE) -> Result<()>

fn SetAlphaMode(&self, alphamode: DXGI_ALPHA_MODE) -> Result<()>

fn SetSourceRect(&self, sourcerect: *const RECT) -> Result<()>

fn SetTransform(&self, transform: *const PresentationTransform) -> Result<()>

fn RestrictToOutput(&self, output: Option<&IUnknown>) -> Result<()>

fn SetDisableReadback(&self, value: u8) -> Result<()>

fn SetLetterboxingMargins( &self, leftletterboxsize: f32, topletterboxsize: f32, rightletterboxsize: f32, bottomletterboxsize: f32, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§