[][src]Struct propertybindings::items::QmlItemWrapper

pub struct QmlItemWrapper { /* fields omitted */ }

This allow to wrap any QQuickItem in order to get its scene graph node. Note that the wrapped item will be hidden and will not handle events. The goal is mostly to access scene graph nodes which would otherwise be private.

Methods

impl QmlItemWrapper[src]

pub fn init(&self, item: &dyn QQuickItem, name: QString)[src]

Create the internal QQuickItem, as a child of item. name is the QML Type (for example "Text". You should call link_property after calling init to initialize the properties.

Link a Property to a QML property of the item. When the Property is changed, it will be updated the property on QQuickItem with the given name. (Not the other way around).

pub unsafe fn update_node(&self, n: SGNode<()>) -> SGNode<()>[src]

Trait Implementations

impl Default for QmlItemWrapper[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]