[−][src]Struct qt_qml::q_qml_context::PropertyPair
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
C++ class: QQmlContext::PropertyPair
.
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Methods
impl PropertyPair
[src]
pub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<PropertyPair>>
) -> Ref<PropertyPair>
[src]
&self,
other: impl CastInto<Ref<PropertyPair>>
) -> Ref<PropertyPair>
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Calls C++ function: QQmlContext::PropertyPair& QQmlContext::PropertyPair::operator=(const QQmlContext::PropertyPair& other)
.
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
pub unsafe fn name(&self) -> Ref<QString>
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Returns a reference to the name
field.
pub unsafe fn name_mut(&self) -> Ref<QString>
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Returns a mutable reference to the name
field.
pub unsafe fn new() -> CppBox<PropertyPair>
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Calls C++ function: [constructor] void QQmlContext::PropertyPair::PropertyPair()
.
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
pub unsafe fn new_copy(
other: impl CastInto<Ref<PropertyPair>>
) -> CppBox<PropertyPair>
[src]
other: impl CastInto<Ref<PropertyPair>>
) -> CppBox<PropertyPair>
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Calls C++ function: [constructor] void QQmlContext::PropertyPair::PropertyPair(const QQmlContext::PropertyPair& other)
.
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
pub unsafe fn set_name(&self, value: impl CastInto<Ref<QString>>)
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Sets the value of the name
field.
pub unsafe fn set_value(&self, value: impl CastInto<Ref<QVariant>>)
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Sets the value of the value
field.
pub unsafe fn value(&self) -> Ref<QVariant>
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Returns a reference to the value
field.
pub unsafe fn value_mut(&self) -> Ref<QVariant>
[src]
cpp_lib_version="5.13.0"
or cpp_lib_version="5.11.3"
or cpp_lib_version="5.12.2"
or cpp_lib_version="5.14.0"
only.Returns a mutable reference to the value
field.
Trait Implementations
impl CppDeletable for PropertyPair
[src]
unsafe fn delete(&self)
[src]
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Calls C++ function: [destructor] void QQmlContext::PropertyPair::~PropertyPair()
.
This struct contains a property name and a property value. It is used as a parameter for the setContextProperties
function.
Auto Trait Implementations
impl RefUnwindSafe for PropertyPair
impl Send for PropertyPair
impl Sync for PropertyPair
impl Unpin for PropertyPair
impl UnwindSafe for PropertyPair
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>,