Struct dx::FrameInfo[][src]

pub struct FrameInfo(_, _);

Implementations

impl FrameInfo[src]

pub fn get_frame_counter(&self) -> i64[src]

Gets the frame counter for the Onscreen that corresponds to this frame.

Returns

The frame counter value

pub fn get_output(&self) -> Option<Output>[src]

Gets the Output that the swapped frame was presented to.

Returns

The Output that the frame was presented to, or None if this could not be determined.

pub fn get_presentation_time(&self) -> i64[src]

Gets the presentation time for the frame. This is the time at which the frame became visible to the user.

The presentation time measured in nanoseconds is based on a monotonic time source. The time source is not necessarily correlated with system/wall clock time and may represent the time elapsed since some undefined system event such as when the system last booted.

<note>Linux kernel version less that 3.8 can result in non-monotonic timestamps being reported when using a drm based OpenGL driver. Also some buggy Mesa drivers up to 9.0.1 may also incorrectly report non-monotonic timestamps.</note>

Returns

the presentation time for the frame

pub fn get_refresh_rate(&self) -> f32[src]

Gets the refresh rate in Hertz for the output that the frame was on at the time the frame was presented.

<note>Some platforms can’t associate a Output with a FrameInfo object but are able to report a refresh rate via this api. Therefore if you need this information then this api is more reliable than using FrameInfo::get_output followed by Output::get_refresh_rate.</note>

Returns

the refresh rate in Hertz

Trait Implementations

impl Clone for FrameInfo[src]

impl Debug for FrameInfo[src]

impl Display for FrameInfo[src]

impl Eq for FrameInfo[src]

impl Hash for FrameInfo[src]

impl IsA<Object> for FrameInfo[src]

impl Ord for FrameInfo[src]

impl<T: ObjectType> PartialEq<T> for FrameInfo[src]

impl<T: ObjectType> PartialOrd<T> for FrameInfo[src]

impl StaticType for FrameInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Super, Sub> CanDowncast<Sub> for Super where
    Sub: IsA<Super>,
    Super: IsA<Super>, 
[src]

impl<T> Cast for T where
    T: ObjectType
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ObjectExt for T where
    T: ObjectType
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToSendValue for T where
    T: SetValue + Send + ToValue + ?Sized
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.