[][src]Struct qt_widgets::QGraphicsObject

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

The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.

C++ class: QGraphicsObject.

C++ documentation:

The QGraphicsObject class provides a base class for all graphics items that require signals, slots and properties.

The class extends a QGraphicsItem with QObject's signal/slot and property mechanisms. It maps many of QGraphicsItem's basic setters and getters to properties and adds notification signals for many of them.

Methods

impl QGraphicsObject[src]

pub fn slot_update_micro_focus(&self) -> Receiver<()>[src]

Updates the item's micro focus. This is slot for convenience.

Returns a built-in Qt slot QGraphicsObject::updateMicroFocus that can be passed to qt_core::Signal::connect.

C++ documentation:

Updates the item's micro focus. This is slot for convenience.

This function was introduced in Qt 4.7.

See also QInputMethod.

pub fn parent_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the parent of the item changes

Returns a built-in Qt signal QGraphicsObject::parentChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the parent of the item changes

Note: Notifier signal for property parent.

pub fn opacity_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the opacity of the item changes

Returns a built-in Qt signal QGraphicsObject::opacityChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the opacity of the item changes

Note: Notifier signal for property opacity.

See also QGraphicsItem::opacity().

pub fn visible_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the visibility of the item changes

Returns a built-in Qt signal QGraphicsObject::visibleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the visibility of the item changes

Note: Notifier signal for property visible.

See also visible.

pub fn enabled_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the item get's enabled or disabled.

Returns a built-in Qt signal QGraphicsObject::enabledChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the item get's enabled or disabled.

Note: Notifier signal for property enabled.

See also isEnabled().

pub fn x_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the x position of the item changes

Returns a built-in Qt signal QGraphicsObject::xChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the x position of the item changes

Note: Notifier signal for property x.

See also pos().

pub fn y_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the y position of the item changes.

Returns a built-in Qt signal QGraphicsObject::yChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the y position of the item changes.

Note: Notifier signal for property y.

See also pos().

pub fn z_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the z value of the item changes.

Returns a built-in Qt signal QGraphicsObject::zChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the z value of the item changes.

Note: Notifier signal for property z.

See also pos().

pub fn rotation_changed(&self) -> Signal<()>[src]

This signal gets emitted whenever the roation of the item changes.

Returns a built-in Qt signal QGraphicsObject::rotationChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal gets emitted whenever the roation of the item changes.

Note: Notifier signal for property rotation.

pub fn scale_changed(&self) -> Signal<()>[src]

This signal is emitted when the scale of the item changes.

Returns a built-in Qt signal QGraphicsObject::scaleChanged that can be passed to qt_core::Signal::connect.

C++ documentation:

This signal is emitted when the scale of the item changes.

Note: Notifier signal for property scale.

pub fn children_changed(&self) -> Signal<()>[src]

Returns a built-in Qt signal QGraphicsObject::childrenChanged that can be passed to qt_core::Signal::connect.

pub fn width_changed(&self) -> Signal<()>[src]

Returns a built-in Qt signal QGraphicsObject::widthChanged that can be passed to qt_core::Signal::connect.

pub fn height_changed(&self) -> Signal<()>[src]

Returns a built-in Qt signal QGraphicsObject::heightChanged that can be passed to qt_core::Signal::connect.

pub unsafe fn grab_gesture_2a(
    &self,
    type_: GestureType,
    flags: QFlags<GestureFlag>
)
[src]

Subscribes the graphics object to the given gesture with specific flags.

Calls C++ function: void QGraphicsObject::grabGesture(Qt::GestureType type, QFlags<Qt::GestureFlag> flags = …).

C++ documentation:

Subscribes the graphics object to the given gesture with specific flags.

See also ungrabGesture() and QGestureEvent.

pub unsafe fn grab_gesture_1a(&self, type_: GestureType)[src]

Subscribes the graphics object to the given gesture with specific flags.

Calls C++ function: void QGraphicsObject::grabGesture(Qt::GestureType type).

C++ documentation:

Subscribes the graphics object to the given gesture with specific flags.

See also ungrabGesture() and QGestureEvent.

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

Calls C++ function: virtual const QMetaObject* QGraphicsObject::metaObject() const.

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

Calls C++ function: virtual int QGraphicsObject::qt_metacall(QMetaObject::Call arg1, int arg2, void** arg3).

pub unsafe fn qt_metacast(&self, arg1: *const c_char) -> *mut c_void[src]

Calls C++ function: virtual void* QGraphicsObject::qt_metacast(const char* arg1).

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

Returns a reference to the staticMetaObject field.

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

Calls C++ function: static QString QGraphicsObject::tr(const char* s, const char* c, int n).

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

Calls C++ function: static QString QGraphicsObject::trUtf8(const char* s, const char* c, int n).

pub unsafe fn ungrab_gesture(&self, type_: GestureType)[src]

Unsubscribes the graphics object from the given gesture.

Calls C++ function: void QGraphicsObject::ungrabGesture(Qt::GestureType type).

C++ documentation:

Unsubscribes the graphics object from the given gesture.

See also grabGesture() and QGestureEvent.

Trait Implementations

impl CppDeletable for QGraphicsObject[src]

unsafe fn delete(&self)[src]

Destructor.

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

C++ documentation:

Destructor.

impl Deref for QGraphicsObject[src]

type Target = QObject

The resulting type after dereferencing.

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

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

impl DynamicCast<QGraphicsObject> for QObject[src]

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

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

impl DynamicCast<QGraphicsObject> for QGraphicsItem[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsItem>) -> Ptr<QGraphicsObject>[src]

Calls C++ function: QGraphicsObject* dynamic_cast<QGraphicsObject*>(QGraphicsItem* ptr).

impl DynamicCast<QGraphicsProxyWidget> for QGraphicsObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsProxyWidget>[src]

Calls C++ function: QGraphicsProxyWidget* dynamic_cast<QGraphicsProxyWidget*>(QGraphicsObject* ptr).

impl DynamicCast<QGraphicsTextItem> for QGraphicsObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsTextItem>[src]

Calls C++ function: QGraphicsTextItem* dynamic_cast<QGraphicsTextItem*>(QGraphicsObject* ptr).

impl DynamicCast<QGraphicsWidget> for QGraphicsObject[src]

unsafe fn dynamic_cast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsWidget>[src]

Calls C++ function: QGraphicsWidget* dynamic_cast<QGraphicsWidget*>(QGraphicsObject* ptr).

impl StaticDowncast<QGraphicsObject> for QObject[src]

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

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

impl StaticDowncast<QGraphicsObject> for QGraphicsItem[src]

unsafe fn static_downcast(ptr: Ptr<QGraphicsItem>) -> Ptr<QGraphicsObject>[src]

Calls C++ function: QGraphicsObject* static_cast<QGraphicsObject*>(QGraphicsItem* ptr).

impl StaticDowncast<QGraphicsProxyWidget> for QGraphicsObject[src]

unsafe fn static_downcast(
    ptr: Ptr<QGraphicsObject>
) -> Ptr<QGraphicsProxyWidget>
[src]

Calls C++ function: QGraphicsProxyWidget* static_cast<QGraphicsProxyWidget*>(QGraphicsObject* ptr).

impl StaticDowncast<QGraphicsTextItem> for QGraphicsObject[src]

unsafe fn static_downcast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsTextItem>[src]

Calls C++ function: QGraphicsTextItem* static_cast<QGraphicsTextItem*>(QGraphicsObject* ptr).

impl StaticDowncast<QGraphicsWidget> for QGraphicsObject[src]

unsafe fn static_downcast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsWidget>[src]

Calls C++ function: QGraphicsWidget* static_cast<QGraphicsWidget*>(QGraphicsObject* ptr).

impl StaticUpcast<QGraphicsItem> for QGraphicsObject[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsObject>) -> Ptr<QGraphicsItem>[src]

Calls C++ function: QGraphicsItem* static_cast<QGraphicsItem*>(QGraphicsObject* ptr).

impl StaticUpcast<QGraphicsObject> for QGraphicsTextItem[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsTextItem>) -> Ptr<QGraphicsObject>[src]

Calls C++ function: QGraphicsObject* static_cast<QGraphicsObject*>(QGraphicsTextItem* ptr).

impl StaticUpcast<QGraphicsObject> for QGraphicsWidget[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsWidget>) -> Ptr<QGraphicsObject>[src]

Calls C++ function: QGraphicsObject* static_cast<QGraphicsObject*>(QGraphicsWidget* ptr).

impl StaticUpcast<QGraphicsObject> for QGraphicsProxyWidget[src]

unsafe fn static_upcast(ptr: Ptr<QGraphicsProxyWidget>) -> Ptr<QGraphicsObject>[src]

Calls C++ function: QGraphicsObject* static_cast<QGraphicsObject*>(QGraphicsProxyWidget* ptr).

impl StaticUpcast<QObject> for QGraphicsObject[src]

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

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