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§

source

fn GetAspectRatioMode(&self) -> HrResult<MFVideoARMode>

source

fn GetBorderColor(&self) -> HrResult<COLORREF>

source

fn GetFullscreen(&self) -> HrResult<bool>

source

fn GetIdealVideoSize(&self) -> HrResult<(SIZE, SIZE)>

IMFVideoDisplayControl::GetIdealVideoSize method.

Returns minimum and maximum ideal sizes.

source

fn GetNativeVideoSize(&self) -> HrResult<(SIZE, SIZE)>

IMFVideoDisplayControl::GetNativeVideoSize method.

Returns native and aspect ratio sizes.

source

fn GetVideoPosition(&self) -> HrResult<(MFVideoNormalizedRect, RECT)>

source

fn GetVideoWindow(&self) -> HrResult<HWND>

source

fn RepaintVideo(&self) -> HrResult<()>

source

fn SetAspectRatioMode(&self, mode: MFVideoARMode) -> HrResult<()>

source

fn SetBorderColor(&self, color: COLORREF) -> HrResult<()>

source

fn SetFullscreen(&self, full_screen: bool) -> HrResult<()>

source

fn SetRenderingPrefs(&self, render_flags: MFVideoRenderPrefs) -> HrResult<()>

source

fn SetVideoPosition( &self, src: Option<MFVideoNormalizedRect>, dest: Option<RECT> ) -> HrResult<()>

IMFVideoDisplayControl::SetVideoPosition method.

At least one parameter must be passed.

source

fn SetVideoWindow(&self, hwnd_video: &HWND) -> HrResult<()>

Object Safety§

This trait is not object safe.

Implementors§