[][src]Struct qt_3d_core::SlotOfQMatrix4X4

pub struct SlotOfQMatrix4X4<'a> { /* fields omitted */ }

Binds a Qt signal with arguments ::cpp_core::Ref<::qt_gui::QMatrix4X4> to a Rust closure.

Corresponding C++ argument types: (const QMatrix4x4&).

Create an object using new() and bind your closure using set(). The closure will be called with the signal's arguments when the slot is invoked. Use connect() method of a qt_core::Signal object to connect the signal to this slot. The closure will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.

The slot object takes ownership of the passed closure. If set() is called again, previously set closure is dropped. Make sure that the slot object does not outlive objects referenced by the closure.

If set() was not called, slot invocation has no effect.

This item is available if any(cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

Methods

impl<'a> SlotOfQMatrix4X4<'a>[src]

pub fn new<F: FnMut(Ref<QMatrix4X4>) + 'a>(f: F) -> SlotOfQMatrix4X4<'a>[src]

Constructs a new object.

pub fn set<F: FnMut(Ref<QMatrix4X4>) + 'a>(&mut self, f: F)[src]

Sets f as the callback closure. If set() is called again, previous closure is dropped.

pub fn clear(&mut self)[src]

Drops the previously set closure, if any. After this, slot invocation will have no effect until a new closure is set.

pub unsafe fn as_raw(&mut self) -> MutRef<RawSlotOfQMatrix4X4>[src]

Trait Implementations

impl<'a, 'b: 'a> AsReceiver for &'b SlotOfQMatrix4X4<'a>[src]

impl<'a> Default for SlotOfQMatrix4X4<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for SlotOfQMatrix4X4<'a>

impl<'a> !Send for SlotOfQMatrix4X4<'a>

impl<'a> !Sync for SlotOfQMatrix4X4<'a>

impl<'a> Unpin for SlotOfQMatrix4X4<'a>

impl<'a> !UnwindSafe for SlotOfQMatrix4X4<'a>

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.