[−][src]Struct qt_gui::QPlatformSurfaceEvent
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
C++ class: QPlatformSurfaceEvent
.
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
Platform window events are synchronously sent to windows and offscreen surfaces when their underlying native surfaces are created or are about to be destroyed.
Applications can respond to these events to know when the underlying platform surface exists.
Methods
impl QPlatformSurfaceEvent
[src]
pub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> Ref<QPlatformSurfaceEvent>
[src]
&self,
other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> Ref<QPlatformSurfaceEvent>
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
Calls C++ function: QPlatformSurfaceEvent& QPlatformSurfaceEvent::operator=(const QPlatformSurfaceEvent& other)
.
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
Platform window events are synchronously sent to windows and offscreen surfaces when their underlying native surfaces are created or are about to be destroyed.
Applications can respond to these events to know when the underlying platform surface exists.
pub unsafe fn new(
surface_event_type: SurfaceEventType
) -> CppBox<QPlatformSurfaceEvent>
[src]
surface_event_type: SurfaceEventType
) -> CppBox<QPlatformSurfaceEvent>
Constructs a platform surface event for the given surfaceEventType.
Calls C++ function: [constructor] void QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType)
.
Constructs a platform surface event for the given surfaceEventType.
pub unsafe fn new_copy(
other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> CppBox<QPlatformSurfaceEvent>
[src]
other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> CppBox<QPlatformSurfaceEvent>
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
Calls C++ function: [constructor] void QPlatformSurfaceEvent::QPlatformSurfaceEvent(const QPlatformSurfaceEvent& other)
.
The QPlatformSurfaceEvent class is used to notify about native platform surface events.
Platform window events are synchronously sent to windows and offscreen surfaces when their underlying native surfaces are created or are about to be destroyed.
Applications can respond to these events to know when the underlying platform surface exists.
pub unsafe fn surface_event_type(&self) -> SurfaceEventType
[src]
Returns the specific type of platform surface event.
Calls C++ function: QPlatformSurfaceEvent::SurfaceEventType QPlatformSurfaceEvent::surfaceEventType() const
.
Returns the specific type of platform surface event.
Trait Implementations
impl CppDeletable for QPlatformSurfaceEvent
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void QPlatformSurfaceEvent::~QPlatformSurfaceEvent()
.
impl Deref for QPlatformSurfaceEvent
[src]
type Target = QEvent
The resulting type after dereferencing.
fn deref(&self) -> &QEvent
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QPlatformSurfaceEvent* ptr)
.
impl DynamicCast<QPlatformSurfaceEvent> for QEvent
[src]
unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QPlatformSurfaceEvent>
[src]
Calls C++ function: QPlatformSurfaceEvent* dynamic_cast<QPlatformSurfaceEvent*>(QEvent* ptr)
.
impl StaticDowncast<QPlatformSurfaceEvent> for QEvent
[src]
unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QPlatformSurfaceEvent>
[src]
Calls C++ function: QPlatformSurfaceEvent* static_cast<QPlatformSurfaceEvent*>(QEvent* ptr)
.
impl StaticUpcast<QEvent> for QPlatformSurfaceEvent
[src]
unsafe fn static_upcast(ptr: Ptr<QPlatformSurfaceEvent>) -> Ptr<QEvent>
[src]
Calls C++ function: QEvent* static_cast<QEvent*>(QPlatformSurfaceEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QPlatformSurfaceEvent
impl Send for QPlatformSurfaceEvent
impl Sync for QPlatformSurfaceEvent
impl Unpin for QPlatformSurfaceEvent
impl UnwindSafe for QPlatformSurfaceEvent
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
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.
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>,