pub struct Attribute { /* private fields */ }Expand description
C++ class: QInputMethodEvent::Attribute.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<Attribute>>,
) -> Ref<Attribute>
pub unsafe fn copy_from( &self, other: impl CastInto<Ref<Attribute>>, ) -> Ref<Attribute>
Calls C++ function: QInputMethodEvent::Attribute& QInputMethodEvent::Attribute::operator=(const QInputMethodEvent::Attribute& other).
Sourcepub unsafe fn new_4a(
typ: AttributeType,
s: c_int,
l: c_int,
val: impl CastInto<Ref<QVariant>>,
) -> CppBox<Attribute>
pub unsafe fn new_4a( typ: AttributeType, s: c_int, l: c_int, val: impl CastInto<Ref<QVariant>>, ) -> CppBox<Attribute>
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType typ, int s, int l, QVariant val).
Sourcepub unsafe fn new_3a(
typ: AttributeType,
s: c_int,
l: c_int,
) -> CppBox<Attribute>
pub unsafe fn new_3a( typ: AttributeType, s: c_int, l: c_int, ) -> CppBox<Attribute>
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType typ, int s, int l).
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<Attribute>>,
) -> CppBox<Attribute>
pub unsafe fn new_copy( other: impl CastInto<Ref<Attribute>>, ) -> CppBox<Attribute>
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(const QInputMethodEvent::Attribute& other).
Sourcepub unsafe fn set_length(&self, value: c_int)
pub unsafe fn set_length(&self, value: c_int)
Sets the value of the length field.
Sourcepub unsafe fn set_type(&self, value: AttributeType)
pub unsafe fn set_type(&self, value: AttributeType)
Sets the value of the type field.
Sourcepub unsafe fn set_value(&self, value: impl CastInto<Ref<QVariant>>)
pub unsafe fn set_value(&self, value: impl CastInto<Ref<QVariant>>)
Sets the value of the value field.
Sourcepub unsafe fn type_(&self) -> AttributeType
pub unsafe fn type_(&self) -> AttributeType
Returns the value of the type field.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more