Struct gdk::FrameClock
source · [−]pub struct FrameClock(_, _);Implementations
sourceimpl FrameClock
impl FrameClock
pub fn begin_updating(&self)
pub fn end_updating(&self)
pub fn get_current_timings(&self) -> Option<FrameTimings>
pub fn get_frame_counter(&self) -> i64
pub fn get_frame_time(&self) -> i64
pub fn get_history_start(&self) -> i64
pub fn get_timings(&self, frame_counter: i64) -> Option<FrameTimings>
pub fn request_phase(&self, phase: FrameClockPhase)
pub fn connect_after_paint<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_before_paint<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_flush_events<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_layout<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_paint<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_resume_events<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
pub fn connect_update<F: Fn(&FrameClock) + 'static>(
&self,
f: F
) -> SignalHandlerId
sourceimpl FrameClock
impl FrameClock
pub fn get_refresh_info(&self, base_time: i64) -> (i64, i64)
Trait Implementations
sourceimpl Clone for FrameClock
impl Clone for FrameClock
sourcefn clone(&self) -> FrameClock
fn clone(&self) -> FrameClock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for FrameClock
impl Debug for FrameClock
sourceimpl Display for FrameClock
impl Display for FrameClock
sourceimpl Hash for FrameClock
impl Hash for FrameClock
sourceimpl Ord for FrameClock
impl Ord for FrameClock
sourcefn cmp(&self, other: &FrameClock) -> Ordering
fn cmp(&self, other: &FrameClock) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: ObjectType> PartialEq<T> for FrameClock
impl<T: ObjectType> PartialEq<T> for FrameClock
sourceimpl<T: ObjectType> PartialOrd<T> for FrameClock
impl<T: ObjectType> PartialOrd<T> for FrameClock
sourcefn partial_cmp(&self, other: &T) -> Option<Ordering>
fn partial_cmp(&self, other: &T) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl StaticType for FrameClock
impl StaticType for FrameClock
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.impl Eq for FrameClock
Auto Trait Implementations
impl RefUnwindSafe for FrameClock
impl !Send for FrameClock
impl !Sync for FrameClock
impl Unpin for FrameClock
impl UnwindSafe for FrameClock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
sourcefn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T. Read moresourcefn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T. Read moresourcefn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T. Read moresourcefn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T. Read moresourcefn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourcefn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast and upcast will do many checks at compile-time already. Read moresourceunsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T unconditionally. Read moresourceunsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T unconditionally. Read moresourceimpl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
sourcefn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true if the object is an instance of (can be cast to) T.