[][src]Struct qt_gui::QPlatformSurfaceEvent

#[repr(C)]
pub struct QPlatformSurfaceEvent { /* fields omitted */ }

The QPlatformSurfaceEvent class is used to notify about native platform surface events.

C++ class: QPlatformSurfaceEvent.

C++ documentation:

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(
    &mut self,
    other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> MutRef<QPlatformSurfaceEvent>
[src]

The QPlatformSurfaceEvent class is used to notify about native platform surface events.

Calls C++ function: QPlatformSurfaceEvent& QPlatformSurfaceEvent::operator=(const QPlatformSurfaceEvent& other).

C++ documentation:

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]

Constructs a platform surface event for the given surfaceEventType.

Calls C++ function: [constructor] void QPlatformSurfaceEvent::QPlatformSurfaceEvent(QPlatformSurfaceEvent::SurfaceEventType surfaceEventType).

C++ documentation:

Constructs a platform surface event for the given surfaceEventType.

pub unsafe fn new_copy(
    other: impl CastInto<Ref<QPlatformSurfaceEvent>>
) -> CppBox<QPlatformSurfaceEvent>
[src]

The QPlatformSurfaceEvent class is used to notify about native platform surface events.

Calls C++ function: [constructor] void QPlatformSurfaceEvent::QPlatformSurfaceEvent(const QPlatformSurfaceEvent& other).

C++ documentation:

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.

C++ documentation:

Returns the specific type of platform surface event.

Trait Implementations

impl CppDeletable for QPlatformSurfaceEvent[src]

unsafe fn delete(&mut 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 DerefMut for QPlatformSurfaceEvent[src]

fn deref_mut(&mut self) -> &mut 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).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QEvent>) -> MutPtr<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).

unsafe fn static_downcast_mut(
    ptr: MutPtr<QEvent>
) -> MutPtr<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).

unsafe fn static_upcast_mut(
    ptr: MutPtr<QPlatformSurfaceEvent>
) -> MutPtr<QEvent>
[src]

Calls C++ function: QEvent* static_cast<QEvent*>(QPlatformSurfaceEvent* ptr).

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<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for T[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.