Struct winsafe::IMediaSeeking
source · pub struct IMediaSeeking(/* private fields */);
Available on crate feature
dshow
only.Expand description
IMediaSeeking
COM interface over IMediaSeekingVT
. Inherits
from IUnknown
.
Automatically calls
IUnknown::Release
when the object goes out of scope.
§Examples
use winsafe::{self as w, prelude::*};
let graph_builder: w::IGraphBuilder; // initialized somewhere
let media_seeking = graph_builder
.QueryInterface::<w::IMediaSeeking>()?;
Trait Implementations§
source§impl Clone for IMediaSeeking
impl Clone for IMediaSeeking
source§impl Drop for IMediaSeeking
impl Drop for IMediaSeeking
source§impl dshow_IMediaSeeking for IMediaSeeking
impl dshow_IMediaSeeking for IMediaSeeking
source§fn ConvertTimeFormat(
&self,
target_format: &TIME_FORMAT,
source: i64,
source_format: &TIME_FORMAT
) -> HrResult<i64>
fn ConvertTimeFormat( &self, target_format: &TIME_FORMAT, source: i64, source_format: &TIME_FORMAT ) -> HrResult<i64>
IMediaSeeking::ConvertTimeFormat
method.source§fn GetAvailable(&self) -> HrResult<(i64, i64)>
fn GetAvailable(&self) -> HrResult<(i64, i64)>
IMediaSeeking::GetAvailable
method. Read moresource§fn GetCurrentPosition(&self) -> HrResult<i64>
fn GetCurrentPosition(&self) -> HrResult<i64>
source§fn GetDuration(&self) -> HrResult<i64>
fn GetDuration(&self) -> HrResult<i64>
IMediaSeeking::GetDuration
method.source§fn GetPositions(&self) -> HrResult<(i64, i64)>
fn GetPositions(&self) -> HrResult<(i64, i64)>
IMediaSeeking::GetPositions
method. Read moresource§fn GetPreroll(&self) -> HrResult<i64>
fn GetPreroll(&self) -> HrResult<i64>
IMediaSeeking::GetPreroll
method.source§fn GetStopPosition(&self) -> HrResult<i64>
fn GetStopPosition(&self) -> HrResult<i64>
IMediaSeeking::GetStopPosition
method.source§fn GetTimeFormat(&self) -> HrResult<TIME_FORMAT>
fn GetTimeFormat(&self) -> HrResult<TIME_FORMAT>
IMediaSeeking::GetTimeFormat
method.source§fn SetPositions(
&self,
current: i64,
current_flags: SEEKING_FLAGS,
stop: i64,
stop_flags: SEEKING_FLAGS
) -> HrResult<()>
fn SetPositions( &self, current: i64, current_flags: SEEKING_FLAGS, stop: i64, stop_flags: SEEKING_FLAGS ) -> HrResult<()>
IMediaSeeking::SetPositions
method.source§fn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()>
fn SetTimeFormat(&self, format: &TIME_FORMAT) -> HrResult<()>
IMediaSeeking::SetTimeFormat
method.source§impl ole_IUnknown for IMediaSeeking
impl ole_IUnknown for IMediaSeeking
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 IMediaSeeking
Auto Trait Implementations§
impl RefUnwindSafe for IMediaSeeking
impl !Sync for IMediaSeeking
impl Unpin for IMediaSeeking
impl UnwindSafe for IMediaSeeking
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