Struct qt_gui::q_input_method_event::Attribute
source · #[repr(C)]pub struct Attribute { /* private fields */ }
Expand description
The QInputMethodEvent::Attribute class stores an input method attribute.
C++ class: QInputMethodEvent::Attribute
.
The QInputMethodEvent::Attribute class stores an input method 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>
The QInputMethodEvent::Attribute class stores an input method attribute.
Calls C++ function: QInputMethodEvent::Attribute& QInputMethodEvent::Attribute::operator=(const QInputMethodEvent::Attribute& other)
.
The QInputMethodEvent::Attribute class stores an input method attribute.
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>
Constructs an input method attribute. type specifies the type of attribute, start and length the position of the attribute, and value the value of the attribute.
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType typ, int s, int l, QVariant val)
.
Constructs an input method attribute. type specifies the type of attribute, start and length the position of the attribute, and value the value of the attribute.
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>
This is an overloaded function.
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType typ, int s, int l)
.
This is an overloaded function.
Constructs an input method attribute with no value. type specifies the type of attribute, and start and length the position of the attribute.
This function was introduced in Qt 5.7.
sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<Attribute>>
) -> CppBox<Attribute>
pub unsafe fn new_copy( other: impl CastInto<Ref<Attribute>> ) -> CppBox<Attribute>
The QInputMethodEvent::Attribute class stores an input method attribute.
Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(const QInputMethodEvent::Attribute& other)
.
The QInputMethodEvent::Attribute class stores an input method attribute.
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§
source§impl CppDeletable for Attribute
impl CppDeletable for Attribute
source§unsafe fn delete(&self)
unsafe fn delete(&self)
The QInputMethodEvent::Attribute class stores an input method attribute.
Calls C++ function: [destructor] void QInputMethodEvent::Attribute::~Attribute()
.
The QInputMethodEvent::Attribute class stores an input method attribute.