Enum cogl::FrameEvent [−][src]
Identifiers that are passed to CoglFrameCallback
functions
(registered using Onscreen::add_frame_callback
) that
mark the progression of a frame in some way which usually
means that new information will have been accumulated in the
frame’s corresponding FrameInfo
object.
The last event that will be sent for a frame will be a
FrameEvent::Complete
event and so these are a good
opportunity to collect statistics about a frame since the
FrameInfo
should hold the most data at this point.
<note>
A frame may not be completed before the next frame can start
so applications should avoid needing to collect all statistics for
a particular frame before they can start a new frame.</note>
Variants (Non-exhaustive)
Notifies that the system compositor has acknowledged a frame and is ready for a new frame to be created.
Notifies that a frame has ended. This
is a good time for applications to
collect statistics about the frame
since the FrameInfo
should hold
the most data at this point. No other
events should be expected after a
FrameEvent::Complete
event.
Trait Implementations
impl Clone for FrameEvent
[src]
fn clone(&self) -> FrameEvent
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for FrameEvent
[src]
impl Debug for FrameEvent
[src]
impl Display for FrameEvent
[src]
impl Eq for FrameEvent
[src]
impl Hash for FrameEvent
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for FrameEvent
[src]
fn cmp(&self, other: &FrameEvent) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<FrameEvent> for FrameEvent
[src]
fn eq(&self, other: &FrameEvent) -> bool
[src]
fn ne(&self, other: &FrameEvent) -> bool
[src]
impl PartialOrd<FrameEvent> for FrameEvent
[src]
fn partial_cmp(&self, other: &FrameEvent) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for FrameEvent
[src]
impl StructuralPartialEq for FrameEvent
[src]
Auto Trait Implementations
impl RefUnwindSafe for FrameEvent
impl Send for FrameEvent
impl Sync for FrameEvent
impl Unpin for FrameEvent
impl UnwindSafe for FrameEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,