[][src]Struct qt_gui::q_input_method_event::Attribute

#[repr(C)]
pub struct Attribute { /* fields omitted */ }

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

C++ class: QInputMethodEvent::Attribute.

C++ documentation:

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]

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.

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]

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.

pub unsafe fn new_3a(
    typ: AttributeType,
    s: c_int,
    l: c_int
) -> CppBox<Attribute>
[src]

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.

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

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.

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

C++ documentation:

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.