Struct winsafe::IMFVideoDisplayControl
source · pub struct IMFVideoDisplayControl(/* private fields */);
Available on crate feature
mf
only.Expand description
IMFVideoDisplayControl
COM interface over
IMFVideoDisplayControlVT
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*, co};
let get_svc: w::IMFGetService; // initialized somewhere
let controller_evr = get_svc
.GetService::<w::IMFVideoDisplayControl>(
&co::MF_SERVICE::MR_VIDEO_RENDER_SERVICE,
)?;
Trait Implementations§
source§impl Clone for IMFVideoDisplayControl
impl Clone for IMFVideoDisplayControl
source§impl Drop for IMFVideoDisplayControl
impl Drop for IMFVideoDisplayControl
source§impl gdi_mf_IMFVideoDisplayControl for IMFVideoDisplayControl
Available on crate feature gdi
only.
impl gdi_mf_IMFVideoDisplayControl for IMFVideoDisplayControl
Available on crate feature
gdi
only.source§fn GetCurrentImage(&self) -> HrResult<(BITMAPINFOHEADER, Vec<u8>, i64)>
fn GetCurrentImage(&self) -> HrResult<(BITMAPINFOHEADER, Vec<u8>, i64)>
GetCurrentImage
method. Read moresource§impl mf_IMFVideoDisplayControl for IMFVideoDisplayControl
impl mf_IMFVideoDisplayControl for IMFVideoDisplayControl
source§fn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode>
fn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode>
source§fn GetBorderColor(&self) -> HrResult<COLORREF>
fn GetBorderColor(&self) -> HrResult<COLORREF>
source§fn GetFullscreen(&self) -> HrResult<bool>
fn GetFullscreen(&self) -> HrResult<bool>
source§fn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)>
fn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)>
source§fn GetVideoWindow(&self) -> HrResult<HWND>
fn GetVideoWindow(&self) -> HrResult<HWND>
source§fn RepaintVideo(&self) -> HrResult<()>
fn RepaintVideo(&self) -> HrResult<()>
source§fn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()>
fn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()>
source§fn SetRenderingPrefs(&self, render_flags: MFVideoRenderPrefs) -> HrResult<()>
fn SetRenderingPrefs(&self, render_flags: MFVideoRenderPrefs) -> HrResult<()>
source§fn SetVideoPosition(
&self,
src: Option<MFVideoNormalizedRect>,
dest: Option<RECT>
) -> HrResult<()>
fn SetVideoPosition( &self, src: Option<MFVideoNormalizedRect>, dest: Option<RECT> ) -> HrResult<()>
source§impl ole_IUnknown for IMFVideoDisplayControl
impl ole_IUnknown for IMFVideoDisplayControl
source§unsafe fn from_ptr(p: *mut c_void) -> Self
unsafe fn from_ptr(p: *mut c_void) -> Self
Available on crate feature
ole
only.Creates an object from a COM virtual table pointer. Read more
source§unsafe fn as_mut(&mut self) -> &mut *mut c_void
unsafe fn as_mut(&mut self) -> &mut *mut c_void
Available on crate feature
ole
only.Returns a mutable reference do the underlying COM virtual table pointer. Read more
source§fn ptr(&self) -> *mut c_void
fn ptr(&self) -> *mut c_void
Available on crate feature
ole
only.Returns the pointer to the underlying COM virtual table. Read more
source§unsafe fn null() -> Self
unsafe fn null() -> Self
Available on crate feature
ole
only.Creates an object from a null COM virtual table pointer. Read more
source§fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
fn QueryInterface<T>(&self) -> HrResult<T>where
T: ole_IUnknown,
Available on crate feature
ole
only.IUnknown::QueryInterface
method.impl Send for IMFVideoDisplayControl
Auto Trait Implementations§
impl RefUnwindSafe for IMFVideoDisplayControl
impl !Sync for IMFVideoDisplayControl
impl Unpin for IMFVideoDisplayControl
impl UnwindSafe for IMFVideoDisplayControl
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more