pub struct SlotMouseDeviceMutPtr<'a> { /* private fields */ }
Expand description

Allows to bind Qt signals with arguments (Qt3DInput::QMouseDevice*) to a Rust closure.

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::connection::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 invokation has no effect.

Implementations§

Constructs a new object.

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

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

Trait Implementations§

Returns the “default value” for a type. Read more
Tuple of argument types of this receiver.
Returns reference to the QObject that owns this signal or slot.
Returns a null-terminated Latin-1 string that identifies this signal or slot within the owning QObject in Qt system. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.