[][src]Struct qt_gui::QInputMethodQueryEvent

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

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

C++ class: QInputMethodQueryEvent.

C++ documentation:

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.

queries() specifies which properties are queried.

The object should call setValue() on the event to fill in the requested data before calling accept().

Methods

impl QInputMethodQueryEvent[src]

pub unsafe fn copy_from(
    &self,
    other: impl CastInto<Ref<QInputMethodQueryEvent>>
) -> Ref<QInputMethodQueryEvent>
[src]

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

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

C++ documentation:

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.

queries() specifies which properties are queried.

The object should call setValue() on the event to fill in the requested data before calling accept().

pub unsafe fn new(
    queries: QFlags<InputMethodQuery>
) -> CppBox<QInputMethodQueryEvent>
[src]

Constructs a query event for properties given by queries.

Calls C++ function: [constructor] void QInputMethodQueryEvent::QInputMethodQueryEvent(QFlags<Qt::InputMethodQuery> queries).

C++ documentation:

Constructs a query event for properties given by queries.

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

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

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

C++ documentation:

The QInputMethodQueryEvent class provides an event sent by the input context to input objects.

It is used by the input method to query a set of properties of the object to be able to support complex input method operations as support for surrounding text and reconversions.

queries() specifies which properties are queried.

The object should call setValue() on the event to fill in the requested data before calling accept().

pub unsafe fn queries(&self) -> QFlags<InputMethodQuery>[src]

Returns the properties queried by the event.

Calls C++ function: QFlags<Qt::InputMethodQuery> QInputMethodQueryEvent::queries() const.

C++ documentation:

Returns the properties queried by the event.

pub unsafe fn set_value(
    &self,
    query: InputMethodQuery,
    value: impl CastInto<Ref<QVariant>>
)
[src]

Sets property query to value.

Calls C++ function: void QInputMethodQueryEvent::setValue(Qt::InputMethodQuery query, const QVariant& value).

C++ documentation:

Sets property query to value.

See also value().

pub unsafe fn value(&self, query: InputMethodQuery) -> CppBox<QVariant>[src]

Returns value of the property query.

Calls C++ function: QVariant QInputMethodQueryEvent::value(Qt::InputMethodQuery query) const.

C++ documentation:

Returns value of the property query.

See also setValue().

Trait Implementations

impl CppDeletable for QInputMethodQueryEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QInputMethodQueryEvent[src]

type Target = QEvent

The resulting type after dereferencing.

fn deref(&self) -> &QEvent[src]

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

impl DynamicCast<QInputMethodQueryEvent> for QEvent[src]

unsafe fn dynamic_cast(ptr: Ptr<QEvent>) -> Ptr<QInputMethodQueryEvent>[src]

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

impl StaticDowncast<QInputMethodQueryEvent> for QEvent[src]

unsafe fn static_downcast(ptr: Ptr<QEvent>) -> Ptr<QInputMethodQueryEvent>[src]

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

impl StaticUpcast<QEvent> for QInputMethodQueryEvent[src]

unsafe fn static_upcast(ptr: Ptr<QInputMethodQueryEvent>) -> Ptr<QEvent>[src]

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

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.