Struct qt_gui::q_platform_surface_event::SurfaceEventType
source · pub struct SurfaceEventType(/* private fields */);
Expand description
This enum describes the type of platform surface event. The possible types are:
C++ enum: QPlatformSurfaceEvent::SurfaceEventType
.
This enum describes the type of platform surface event. The possible types are:
The SurfaceAboutToBeDestroyed
event type is useful as a means of stopping rendering to a platform window before it is destroyed.
Implementations§
source§impl SurfaceEventType
impl SurfaceEventType
sourcepub const SurfaceCreated: SurfaceEventType = _
pub const SurfaceCreated: SurfaceEventType = _
The underlying native surface has been created (C++ enum variant: SurfaceCreated = 0
)
sourcepub const SurfaceAboutToBeDestroyed: SurfaceEventType = _
pub const SurfaceAboutToBeDestroyed: SurfaceEventType = _
The underlying native surface will be destroyed immediately after this event (C++ enum variant: SurfaceAboutToBeDestroyed = 1
)
Trait Implementations§
source§impl Clone for SurfaceEventType
impl Clone for SurfaceEventType
source§fn clone(&self) -> SurfaceEventType
fn clone(&self) -> SurfaceEventType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SurfaceEventType
impl Debug for SurfaceEventType
source§impl From<SurfaceEventType> for c_int
impl From<SurfaceEventType> for c_int
source§fn from(value: SurfaceEventType) -> Self
fn from(value: SurfaceEventType) -> Self
Converts to this type from the input type.
source§impl From<i32> for SurfaceEventType
impl From<i32> for SurfaceEventType
source§impl PartialEq for SurfaceEventType
impl PartialEq for SurfaceEventType
source§fn eq(&self, other: &SurfaceEventType) -> bool
fn eq(&self, other: &SurfaceEventType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for SurfaceEventType
impl Eq for SurfaceEventType
impl StructuralEq for SurfaceEventType
impl StructuralPartialEq for SurfaceEventType
Auto Trait Implementations§
impl RefUnwindSafe for SurfaceEventType
impl Send for SurfaceEventType
impl Sync for SurfaceEventType
impl Unpin for SurfaceEventType
impl UnwindSafe for SurfaceEventType
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