[−][src]Struct qt_widgets::SignalOfQGraphicsItemQGraphicsItem
Emits a Qt signal with arguments *mut crate::QGraphicsItem,*mut crate::QGraphicsItem
.
Corresponding C++ argument types: (QGraphicsItem*, QGraphicsItem*
).
Use connect()
method of this object to connect this signal to a slot. Use emit()
method to emit the signal.
Methods
impl SignalOfQGraphicsItemQGraphicsItem
[src]
pub unsafe fn connect_with_type<R>(
&self,
connection_type: ConnectionType,
receiver: R
) -> CppBox<Connection> where
R: AsReceiver,
(*mut QGraphicsItem, *mut QGraphicsItem): ArgumentsCompatible<R::Arguments>,
[src]
&self,
connection_type: ConnectionType,
receiver: R
) -> CppBox<Connection> where
R: AsReceiver,
(*mut QGraphicsItem, *mut QGraphicsItem): ArgumentsCompatible<R::Arguments>,
Connects this signal to another signal or slot.
This is a shortcut for self.signal().connect(receiver)
.
pub unsafe fn connect<R>(&self, receiver: R) -> CppBox<Connection> where
R: AsReceiver,
(*mut QGraphicsItem, *mut QGraphicsItem): ArgumentsCompatible<R::Arguments>,
[src]
R: AsReceiver,
(*mut QGraphicsItem, *mut QGraphicsItem): ArgumentsCompatible<R::Arguments>,
Connects this signal to another signal or slot, using auto connection type.
This is a shortcut for self.signal().connect(receiver)
.
impl SignalOfQGraphicsItemQGraphicsItem
[src]
pub fn signal(&self) -> Signal<(*mut QGraphicsItem, *mut QGraphicsItem)>
[src]
Returns a Signal
object representing the signal.
This method is useful if you need to connect another signal to this signal. However, when you need to connect this signal to another signal or slot, it's simpler to use the connect()
method of this object directly.
pub unsafe fn emit(
&self,
arg0: impl CastInto<Ptr<QGraphicsItem>>,
arg1: impl CastInto<Ptr<QGraphicsItem>>
)
[src]
&self,
arg0: impl CastInto<Ptr<QGraphicsItem>>,
arg1: impl CastInto<Ptr<QGraphicsItem>>
)
Emits the signal.
pub unsafe fn meta_object(&self) -> Ptr<QMetaObject>
[src]
pub unsafe fn new() -> QBox<SignalOfQGraphicsItemQGraphicsItem>
[src]
Creates a new object.
pub unsafe fn qt_metacall(
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
[src]
&self,
arg1: Call,
arg2: c_int,
arg3: *mut *mut c_void
) -> c_int
pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void
[src]
pub unsafe fn static_meta_object() -> Ref<QMetaObject>
[src]
pub unsafe fn tr(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
pub unsafe fn tr_utf8(
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
[src]
s: *const c_char,
c: *const c_char,
n: c_int
) -> CppBox<QString>
Trait Implementations
impl AsReceiver for SignalOfQGraphicsItemQGraphicsItem
[src]
type Arguments = (*mut QGraphicsItem, *mut QGraphicsItem)
Argument types expected by this receiver.
fn as_receiver(&self) -> Receiver<Self::Arguments>
[src]
impl CppDeletable for SignalOfQGraphicsItemQGraphicsItem
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: [destructor] void ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr::~ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr()
.
impl Deref for SignalOfQGraphicsItemQGraphicsItem
[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_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr* ptr)
.
impl DynamicCast<SignalOfQGraphicsItemQGraphicsItem> for QObject
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QObject>
) -> Ptr<SignalOfQGraphicsItemQGraphicsItem>
[src]
ptr: Ptr<QObject>
) -> Ptr<SignalOfQGraphicsItemQGraphicsItem>
Calls C++ function: ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr* dynamic_cast<ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr*>(QObject* ptr)
.
impl StaticDowncast<SignalOfQGraphicsItemQGraphicsItem> for QObject
[src]
unsafe fn static_downcast(
ptr: Ptr<QObject>
) -> Ptr<SignalOfQGraphicsItemQGraphicsItem>
[src]
ptr: Ptr<QObject>
) -> Ptr<SignalOfQGraphicsItemQGraphicsItem>
Calls C++ function: ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr* static_cast<ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr*>(QObject* ptr)
.
impl StaticUpcast<QObject> for SignalOfQGraphicsItemQGraphicsItem
[src]
unsafe fn static_upcast(
ptr: Ptr<SignalOfQGraphicsItemQGraphicsItem>
) -> Ptr<QObject>
[src]
ptr: Ptr<SignalOfQGraphicsItemQGraphicsItem>
) -> Ptr<QObject>
Calls C++ function: QObject* static_cast<QObject*>(ctr_qt_widgets_ffi_signal_wrapper_QGraphicsItem_ptr_QGraphicsItem_ptr* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for SignalOfQGraphicsItemQGraphicsItem
impl Send for SignalOfQGraphicsItemQGraphicsItem
impl Sync for SignalOfQGraphicsItemQGraphicsItem
impl Unpin for SignalOfQGraphicsItemQGraphicsItem
impl UnwindSafe for SignalOfQGraphicsItemQGraphicsItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<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>,