[][src]Struct qt_3d_render::SlotOfFilterMode

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

Binds a Qt signal with arguments crate::q_abstract_ray_caster::FilterMode to a Rust closure.

Corresponding C++ argument types: (Qt3DRender::QAbstractRayCaster::FilterMode).

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.14.0", cpp_lib_version="5.11.3", cpp_lib_version="5.12.2", cpp_lib_version="5.13.0").

Methods

impl SlotOfFilterMode[src]

pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>[src]

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

pub unsafe fn new<T: FnMut(FilterMode) + 'static>(
    parent: impl CastInto<MutPtr<QObject>>,
    callback: T
) -> QBox<SlotOfFilterMode>
[src]

Creates a new object.

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

pub unsafe fn qt_metacall(
    &mut self,
    arg1: Call,
    arg2: c_int,
    arg3: impl CastInto<MutPtr<*mut c_void>>
) -> c_int
[src]

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

pub unsafe fn qt_metacast(
    &mut self,
    arg1: impl CastInto<Ptr<c_char>>
) -> MutPtr<c_void>
[src]

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

pub unsafe fn set<T: FnMut(FilterMode) + 'static>(&mut self, callback: T)[src]

Assigns callback 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.

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

pub unsafe fn slot(&mut self, arg0: FilterMode)[src]

Calls the slot directly, invoking the assigned handler (if any).

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

pub unsafe fn static_meta_object() -> Ref<QMetaObject>[src]

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

pub unsafe fn tr(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

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

pub unsafe fn tr_utf8(
    s: impl CastInto<Ptr<c_char>>,
    c: impl CastInto<Ptr<c_char>>,
    n: c_int
) -> CppBox<QString>
[src]

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

Trait Implementations

impl AsReceiver for SlotOfFilterMode[src]

impl CppDeletable for SlotOfFilterMode[src]

unsafe fn delete(&mut self)[src]

Calls C++ function: [destructor] void ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode::~ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode().

impl Deref for SlotOfFilterMode[src]

type Target = QObject

The resulting type after dereferencing.

fn deref(&self) -> &QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* ptr).

impl DerefMut for SlotOfFilterMode[src]

fn deref_mut(&mut self) -> &mut QObject[src]

Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* ptr).

impl DynamicCast<SlotOfFilterMode> for QObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QObject>) -> Ptr<SlotOfFilterMode>[src]

Calls C++ function: ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* dynamic_cast<ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode*>(QObject* ptr).

unsafe fn dynamic_cast_mut(ptr: MutPtr<QObject>) -> MutPtr<SlotOfFilterMode>[src]

Calls C++ function: ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* dynamic_cast<ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode*>(QObject* ptr).

impl StaticDowncast<SlotOfFilterMode> for QObject[src]

unsafe fn static_downcast(ptr: Ptr<QObject>) -> Ptr<SlotOfFilterMode>[src]

Calls C++ function: ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* static_cast<ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode*>(QObject* ptr).

unsafe fn static_downcast_mut(ptr: MutPtr<QObject>) -> MutPtr<SlotOfFilterMode>[src]

Calls C++ function: ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* static_cast<ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode*>(QObject* ptr).

impl StaticUpcast<QObject> for SlotOfFilterMode[src]

unsafe fn static_upcast(ptr: Ptr<SlotOfFilterMode>) -> Ptr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* ptr).

unsafe fn static_upcast_mut(ptr: MutPtr<SlotOfFilterMode>) -> MutPtr<QObject>[src]

Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_3d_render_ffi_slot_wrapper_Qt3DRender_QAbstractRayCaster_FilterMode* 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.