Skip to main content

Attribute

Struct Attribute 

Source
pub struct Attribute { /* private fields */ }
Expand description

C++ class: QInputMethodEvent::Attribute.

Implementations§

Source§

impl Attribute

Source

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

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>

Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(QInputMethodEvent::AttributeType typ, int s, int l, QVariant val).

Source

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

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<Attribute>>, ) -> CppBox<Attribute>

Calls C++ function: [constructor] void QInputMethodEvent::Attribute::Attribute(const QInputMethodEvent::Attribute& other).

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)

Calls C++ function: [destructor] void QInputMethodEvent::Attribute::~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>,

Source§

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>,

Source§

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.