#[repr(C)]
pub struct Attribute { /* private fields */ }
Expand description

The QInputMethodEvent::Attribute class stores an input method attribute.

C++ class: QInputMethodEvent::Attribute.

C++ documentation:

The QInputMethodEvent::Attribute class stores an input method attribute.

Implementations§

source§

impl Attribute

source

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).

C++ documentation:

The QInputMethodEvent::Attribute class stores an input method attribute.

source

pub unsafe fn length(&self) -> c_int

Returns the value of the length field.

source

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).

C++ documentation:

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.

source

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).

C++ documentation:

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.

source

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).

C++ documentation:

The QInputMethodEvent::Attribute class stores an input method attribute.

source

pub unsafe fn set_length(&self, value: c_int)

Sets the value of the length field.

source

pub unsafe fn set_start(&self, value: c_int)

Sets the value of the start field.

source

pub unsafe fn set_type(&self, value: AttributeType)

Sets the value of the type field.

source

pub unsafe fn set_value(&self, value: impl CastInto<Ref<QVariant>>)

Sets the value of the value field.

source

pub unsafe fn start(&self) -> c_int

Returns the value of the start field.

source

pub unsafe fn type_(&self) -> AttributeType

Returns the value of the type field.

source

pub unsafe fn value(&self) -> Ref<QVariant>

Returns a reference to the value field.

source

pub unsafe fn value_mut(&self) -> Ref<QVariant>

Returns a mutable reference to the value field.

Trait Implementations§

source§

impl CppDeletable for Attribute

source§

unsafe fn delete(&self)

The QInputMethodEvent::Attribute class stores an input method attribute.

Calls C++ function: [destructor] void QInputMethodEvent::Attribute::~Attribute().

C++ documentation:

The QInputMethodEvent::Attribute class stores an input method attribute.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for T
where U: CastFrom<T>,

source§

unsafe fn cast_into(self) -> U

Performs the conversion. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> StaticUpcast<T> for T

source§

unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>

Convert type of a const pointer. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.