[−][src]Struct propertybindings::items::QmlItemWrapper
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.
pub fn link_property<'a, T: QMetaType>(
&self,
p: &Property<'a, T>,
name: &'static CStr
)
[src]
&self,
p: &Property<'a, T>,
name: &'static CStr
)
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]
fn default() -> QmlItemWrapper
[src]
Auto Trait Implementations
impl Send for QmlItemWrapper
impl Unpin for QmlItemWrapper
impl !Sync for QmlItemWrapper
impl UnwindSafe for QmlItemWrapper
impl !RefUnwindSafe for QmlItemWrapper
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,