[−][src]Struct qt_gui::q_input_method_event::Attribute
The QInputMethodEvent::Attribute class stores an input method attribute.
C++ class: QInputMethodEvent::Attribute
.
The QInputMethodEvent::Attribute class stores an input method attribute.
Methods
impl Attribute
[src]
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<Attribute>>
) -> MutRef<Attribute>
[src]
&mut self,
other: impl CastInto<Ref<Attribute>>
) -> MutRef<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.
pub unsafe fn length(&self) -> c_int
[src]
Returns the value of the length
field.
pub unsafe fn new_4a(
typ: AttributeType,
s: c_int,
l: c_int,
val: impl CastInto<Ref<QVariant>>
) -> CppBox<Attribute>
[src]
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.
pub unsafe fn new_3a(
typ: AttributeType,
s: c_int,
l: c_int
) -> CppBox<Attribute>
[src]
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.
pub unsafe fn new_copy(
other: impl CastInto<Ref<Attribute>>
) -> CppBox<Attribute>
[src]
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.
pub unsafe fn set_length(&mut self, value: c_int)
[src]
Sets the value of the length
field.
pub unsafe fn set_start(&mut self, value: c_int)
[src]
Sets the value of the start
field.
pub unsafe fn set_type(&mut self, value: AttributeType)
[src]
Sets the value of the type
field.
pub unsafe fn set_value(&mut self, value: impl CastInto<Ref<QVariant>>)
[src]
Sets the value of the value
field.
pub unsafe fn start(&self) -> c_int
[src]
Returns the value of the start
field.
pub unsafe fn type_(&self) -> AttributeType
[src]
Returns the value of the type
field.
pub unsafe fn value(&self) -> Ref<QVariant>
[src]
Returns a reference to the value
field.
pub unsafe fn value_mut(&mut self) -> MutRef<QVariant>
[src]
Returns a mutable reference to the value
field.
Trait Implementations
impl CppDeletable for Attribute
[src]
unsafe fn delete(&mut self)
[src]
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.
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<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>,