[−][src]Struct qt_widgets::RawSlotOfQListWidgetItemQListWidgetItem
Binds a Qt signal with arguments *mut crate::QListWidgetItem,*mut crate::QListWidgetItem
to a Rust extern function.
It's recommended to use SlotOfQListWidgetItemQListWidgetItem
instead because it provides a more high-level API.
Corresponding C++ argument types: (QListWidgetItem*, QListWidgetItem*
).
Create an object using new()
and bind your function and payload using set()
. The function will receive the payload as its first arguments, and the rest of arguments will be values passed through the Qt connection system. Use connect()
method of a qt_core::Signal
object to connect the signal to this slot. The callback function will be executed each time the slot is invoked until source signals are disconnected or the slot object is destroyed.
If set()
was not called, slot invocation has no effect.
Methods
impl RawSlotOfQListWidgetItemQListWidgetItem
[src]
pub unsafe fn custom_slot(
&mut self,
arg0: impl CastInto<MutPtr<QListWidgetItem>>,
arg1: impl CastInto<MutPtr<QListWidgetItem>>
)
[src]
&mut self,
arg0: impl CastInto<MutPtr<QListWidgetItem>>,
arg1: impl CastInto<MutPtr<QListWidgetItem>>
)
Calls the slot directly, invoking the assigned handler (if any).
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
pub unsafe fn new() -> CppBox<RawSlotOfQListWidgetItemQListWidgetItem>
[src]
Creates a new object.
pub unsafe fn qt_metacall(
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]
&mut self,
arg1: Call,
arg2: c_int,
arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
pub unsafe fn qt_metacast(
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]
&mut self,
arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
pub unsafe fn set(
&mut self,
func: Option<extern "C" fn(_: *mut c_void, _: *mut QListWidgetItem, _: *mut QListWidgetItem)>,
data: impl CastInto<MutPtr<c_void>>
)
[src]
&mut self,
func: Option<extern "C" fn(_: *mut c_void, _: *mut QListWidgetItem, _: *mut QListWidgetItem)>,
data: impl CastInto<MutPtr<c_void>>
)
Assigns func
as the signal handler.
func
will be called each time a connected signal is emitted. Any previously assigned function will be deregistered. Passing None
will deregister the handler without setting a new one.
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
pub unsafe fn tr(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
pub unsafe fn tr_utf8(
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
[src]
s: impl CastInto<Ptr<c_char>>,
c: impl CastInto<Ptr<c_char>>,
n: c_int
) -> CppBox<QString>
Trait Implementations
impl Deref for RawSlotOfQListWidgetItemQListWidgetItem
[src]
type Target = QObject
The resulting type after dereferencing.
fn deref(&self) -> &QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* ptr)
.
impl DerefMut for RawSlotOfQListWidgetItemQListWidgetItem
[src]
fn deref_mut(&mut self) -> &mut QObject
[src]
Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* ptr)
.
impl StaticUpcast<QObject> for RawSlotOfQListWidgetItemQListWidgetItem
[src]
unsafe fn static_upcast(
ptr: Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
) -> Ptr<QObject>
[src]
ptr: Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
) -> Ptr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* ptr)
.
unsafe fn static_upcast_mut(
ptr: MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
) -> MutPtr<QObject>
[src]
ptr: MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
) -> MutPtr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* ptr)
.
impl StaticDowncast<RawSlotOfQListWidgetItemQListWidgetItem> for QObject
[src]
unsafe fn static_downcast(
ptr: Ptr<QObject>
) -> Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
[src]
ptr: Ptr<QObject>
) -> Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
Calls C++ function: ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* static_cast<ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr*>(QObject* ptr)
.
unsafe fn static_downcast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
Calls C++ function: ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* static_cast<ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr*>(QObject* ptr)
.
impl DynamicCast<RawSlotOfQListWidgetItemQListWidgetItem> for QObject
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QObject>
) -> Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
[src]
ptr: Ptr<QObject>
) -> Ptr<RawSlotOfQListWidgetItemQListWidgetItem>
Calls C++ function: ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* dynamic_cast<ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr*>(QObject* ptr)
.
unsafe fn dynamic_cast_mut(
ptr: MutPtr<QObject>
) -> MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
[src]
ptr: MutPtr<QObject>
) -> MutPtr<RawSlotOfQListWidgetItemQListWidgetItem>
Calls C++ function: ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr* dynamic_cast<ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr*>(QObject* ptr)
.
impl CppDeletable for RawSlotOfQListWidgetItemQListWidgetItem
[src]
unsafe fn delete(&mut self)
[src]
Calls C++ function: [destructor] void ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr::~ctr_qt_widgets_ffi_slot_wrapper_QListWidgetItem_ptr_QListWidgetItem_ptr()
.
impl AsReceiver for RawSlotOfQListWidgetItemQListWidgetItem
[src]
type Arguments = (*mut QListWidgetItem, *mut QListWidgetItem)
fn as_receiver(&self) -> Receiver<Self::Arguments>
[src]
Auto Trait Implementations
impl Send for RawSlotOfQListWidgetItemQListWidgetItem
impl Unpin for RawSlotOfQListWidgetItemQListWidgetItem
impl Sync for RawSlotOfQListWidgetItemQListWidgetItem
impl UnwindSafe for RawSlotOfQListWidgetItemQListWidgetItem
impl RefUnwindSafe for RawSlotOfQListWidgetItemQListWidgetItem
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,