Trait winsafe::prelude::mf_IMFVideoDisplayControl
source · pub trait mf_IMFVideoDisplayControl: ole_IUnknown {
Show 14 methods
// Provided methods
fn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode> { ... }
fn GetBorderColor(&self) -> HrResult<COLORREF> { ... }
fn GetFullscreen(&self) -> HrResult<bool> { ... }
fn GetIdealVideoSize(&self) -> HrResult<(SIZE, SIZE)> { ... }
fn GetNativeVideoSize(&self) -> HrResult<(SIZE, SIZE)> { ... }
fn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)> { ... }
fn GetVideoWindow(&self) -> HrResult<HWND> { ... }
fn RepaintVideo(&self) -> HrResult<()> { ... }
fn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()> { ... }
fn SetBorderColor(&self, color: COLORREF) -> HrResult<()> { ... }
fn SetFullscreen(&self, full_screen: bool) -> HrResult<()> { ... }
fn SetRenderingPrefs(
&self,
render_flags: MFVideoRenderPrefs
) -> HrResult<()> { ... }
fn SetVideoPosition(
&self,
src: Option<MFVideoNormalizedRect>,
dest: Option<RECT>
) -> HrResult<()> { ... }
fn SetVideoWindow(&self, hwnd_video: &HWND) -> HrResult<()> { ... }
}
Available on crate features
kernel
and mf
only.Expand description
This trait is enabled with the mf
feature, and provides methods for
IMFVideoDisplayControl
.
Prefer importing this trait through the prelude:
use winsafe::prelude::*;
Provided Methods§
sourcefn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode>
fn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode>
sourcefn GetBorderColor(&self) -> HrResult<COLORREF>
fn GetBorderColor(&self) -> HrResult<COLORREF>
sourcefn GetFullscreen(&self) -> HrResult<bool>
fn GetFullscreen(&self) -> HrResult<bool>
sourcefn GetIdealVideoSize(&self) -> HrResult<(SIZE, SIZE)>
fn GetIdealVideoSize(&self) -> HrResult<(SIZE, SIZE)>
IMFVideoDisplayControl::GetIdealVideoSize
method.
Returns minimum and maximum ideal sizes.
sourcefn GetNativeVideoSize(&self) -> HrResult<(SIZE, SIZE)>
fn GetNativeVideoSize(&self) -> HrResult<(SIZE, SIZE)>
IMFVideoDisplayControl::GetNativeVideoSize
method.
Returns native and aspect ratio sizes.
sourcefn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)>
fn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)>
sourcefn GetVideoWindow(&self) -> HrResult<HWND>
fn GetVideoWindow(&self) -> HrResult<HWND>
sourcefn RepaintVideo(&self) -> HrResult<()>
fn RepaintVideo(&self) -> HrResult<()>
sourcefn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()>
fn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()>
sourcefn SetBorderColor(&self, color: COLORREF) -> HrResult<()>
fn SetBorderColor(&self, color: COLORREF) -> HrResult<()>
sourcefn SetFullscreen(&self, full_screen: bool) -> HrResult<()>
fn SetFullscreen(&self, full_screen: bool) -> HrResult<()>
sourcefn SetRenderingPrefs(&self, render_flags: MFVideoRenderPrefs) -> HrResult<()>
fn SetRenderingPrefs(&self, render_flags: MFVideoRenderPrefs) -> HrResult<()>
sourcefn SetVideoPosition(
&self,
src: Option<MFVideoNormalizedRect>,
dest: Option<RECT>
) -> HrResult<()>
fn SetVideoPosition( &self, src: Option<MFVideoNormalizedRect>, dest: Option<RECT> ) -> HrResult<()>
IMFVideoDisplayControl::SetVideoPosition
method.
At least one parameter must be passed.
sourcefn SetVideoWindow(&self, hwnd_video: &HWND) -> HrResult<()>
fn SetVideoWindow(&self, hwnd_video: &HWND) -> HrResult<()>
Object Safety§
This trait is not object safe.