Skip to main content

QInputMethodEvent

Struct QInputMethodEvent 

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

C++ class: QInputMethodEvent.

Implementations§

Source§

impl QInputMethodEvent

Source

pub unsafe fn attributes(&self) -> Ref<QListOfAttribute>

Calls C++ function: const QList<QInputMethodEvent::Attribute>& QInputMethodEvent::attributes() const.

Source

pub unsafe fn commit_string(&self) -> Ref<QString>

Calls C++ function: const QString& QInputMethodEvent::commitString() const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QInputMethodEvent>>, ) -> Ref<QInputMethodEvent>

Calls C++ function: QInputMethodEvent& QInputMethodEvent::operator=(const QInputMethodEvent& other).

Source

pub unsafe fn new_0a() -> CppBox<QInputMethodEvent>

Calls C++ function: [constructor] void QInputMethodEvent::QInputMethodEvent().

Source

pub unsafe fn new_2a( preedit_text: impl CastInto<Ref<QString>>, attributes: impl CastInto<Ref<QListOfAttribute>>, ) -> CppBox<QInputMethodEvent>

Calls C++ function: [constructor] void QInputMethodEvent::QInputMethodEvent(const QString& preeditText, const QList<QInputMethodEvent::Attribute>& attributes).

Source

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

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

Source

pub unsafe fn preedit_string(&self) -> Ref<QString>

Calls C++ function: const QString& QInputMethodEvent::preeditString() const.

Source

pub unsafe fn replacement_length(&self) -> c_int

Calls C++ function: int QInputMethodEvent::replacementLength() const.

Source

pub unsafe fn replacement_start(&self) -> c_int

Calls C++ function: int QInputMethodEvent::replacementStart() const.

Source

pub unsafe fn set_commit_string_3a( &self, commit_string: impl CastInto<Ref<QString>>, replace_from: c_int, replace_length: c_int, )

Calls C++ function: void QInputMethodEvent::setCommitString(const QString& commitString, int replaceFrom = …, int replaceLength = …).

Source

pub unsafe fn set_commit_string_2a( &self, commit_string: impl CastInto<Ref<QString>>, replace_from: c_int, )

Calls C++ function: void QInputMethodEvent::setCommitString(const QString& commitString, int replaceFrom = …).

Source

pub unsafe fn set_commit_string_1a( &self, commit_string: impl CastInto<Ref<QString>>, )

Calls C++ function: void QInputMethodEvent::setCommitString(const QString& commitString).

Methods from Deref<Target = QEvent>§

Source

pub unsafe fn accept(&self)

Calls C++ function: void QEvent::accept().

Source

pub unsafe fn copy_from(&self, other: impl CastInto<Ref<QEvent>>) -> Ref<QEvent>

Calls C++ function: QEvent& QEvent::operator=(const QEvent& other).

Source

pub unsafe fn ignore(&self)

Calls C++ function: void QEvent::ignore().

Source

pub unsafe fn is_accepted(&self) -> bool

Calls C++ function: bool QEvent::isAccepted() const.

Source

pub unsafe fn set_accepted(&self, accepted: bool)

Calls C++ function: void QEvent::setAccepted(bool accepted).

Source

pub unsafe fn spontaneous(&self) -> bool

Calls C++ function: bool QEvent::spontaneous() const.

Source

pub unsafe fn type_(&self) -> Type

Calls C++ function: QEvent::Type QEvent::type() const.

Trait Implementations§

Source§

impl CppDeletable for QInputMethodEvent

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QInputMethodEvent

Source§

fn deref(&self) -> &QEvent

Calls C++ function: QEvent* static_cast<QEvent*>(QInputMethodEvent* ptr).

Source§

type Target = QEvent

The resulting type after dereferencing.
Source§

impl DynamicCast<QInputMethodEvent> for QEvent

Source§

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QInputMethodEvent>

Calls C++ function: QInputMethodEvent* dynamic_cast<QInputMethodEvent*>(QEvent* ptr).

Source§

impl StaticDowncast<QInputMethodEvent> for QEvent

Source§

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QInputMethodEvent>

Calls C++ function: QInputMethodEvent* static_cast<QInputMethodEvent*>(QEvent* ptr).

Source§

impl StaticUpcast<QEvent> for QInputMethodEvent

Source§

unsafe fn static_upcast(ptr: Ptr<QInputMethodEvent>) -> Ptr<QEvent>

Calls C++ function: QEvent* static_cast<QEvent*>(QInputMethodEvent* ptr).

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.