[][src]Struct qt_gui::QAccessibleTextInsertEvent

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

The QAccessibleTextInsertEvent class notifies of text being inserted.

C++ class: QAccessibleTextInsertEvent.

C++ documentation:

The QAccessibleTextInsertEvent class notifies of text being inserted.

This class is used with QAccessible::updateAccessibility().

Methods

impl QAccessibleTextInsertEvent[src]

pub unsafe fn change_position(&self) -> c_int[src]

Returns the position where the text was inserted.

Calls C++ function: int QAccessibleTextInsertEvent::changePosition() const.

C++ documentation:

Returns the position where the text was inserted.

pub unsafe fn from_q_object_int_q_string(
    obj: impl CastInto<Ptr<QObject>>,
    position: c_int,
    text: impl CastInto<Ref<QString>>
) -> CppBox<QAccessibleTextInsertEvent>
[src]

Constructs a new QAccessibleTextInsertEvent event for object. The text has been inserted at position. By default, it is assumed that the cursor has moved to the end of the selection. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.

Calls C++ function: [constructor] void QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QObject* obj, int position, const QString& text).

C++ documentation:

Constructs a new QAccessibleTextInsertEvent event for object. The text has been inserted at position. By default, it is assumed that the cursor has moved to the end of the selection. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.

pub unsafe fn from_q_accessible_interface_int_q_string(
    iface: impl CastInto<Ptr<QAccessibleInterface>>,
    position: c_int,
    text: impl CastInto<Ref<QString>>
) -> CppBox<QAccessibleTextInsertEvent>
[src]

Constructs a new QAccessibleTextInsertEvent event for iface. The text has been inserted at position.

Calls C++ function: [constructor] void QAccessibleTextInsertEvent::QAccessibleTextInsertEvent(QAccessibleInterface* iface, int position, const QString& text).

C++ documentation:

Constructs a new QAccessibleTextInsertEvent event for iface. The text has been inserted at position.

pub unsafe fn text_inserted(&self) -> CppBox<QString>[src]

Returns the text that has been inserted.

Calls C++ function: QString QAccessibleTextInsertEvent::textInserted() const.

C++ documentation:

Returns the text that has been inserted.

Methods from Deref<Target = QAccessibleTextCursorEvent>

pub unsafe fn cursor_position(&self) -> c_int[src]

Returns the cursor position.

Calls C++ function: int QAccessibleTextCursorEvent::cursorPosition() const.

C++ documentation:

Returns the cursor position.

See also setCursorPosition().

pub unsafe fn set_cursor_position(&self, position: c_int)[src]

Sets the cursor position for this event.

Calls C++ function: void QAccessibleTextCursorEvent::setCursorPosition(int position).

C++ documentation:

Sets the cursor position for this event.

See also cursorPosition().

Trait Implementations

impl CppDeletable for QAccessibleTextInsertEvent[src]

unsafe fn delete(&self)[src]

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

impl Deref for QAccessibleTextInsertEvent[src]

type Target = QAccessibleTextCursorEvent

The resulting type after dereferencing.

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

Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextInsertEvent* ptr).

impl DynamicCast<QAccessibleTextInsertEvent> for QAccessibleTextCursorEvent[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextInsertEvent>
[src]

Calls C++ function: QAccessibleTextInsertEvent* dynamic_cast<QAccessibleTextInsertEvent*>(QAccessibleTextCursorEvent* ptr).

impl DynamicCast<QAccessibleTextInsertEvent> for QAccessibleEvent[src]

unsafe fn dynamic_cast(
    ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextInsertEvent>
[src]

Calls C++ function: QAccessibleTextInsertEvent* dynamic_cast<QAccessibleTextInsertEvent*>(QAccessibleEvent* ptr).

impl StaticDowncast<QAccessibleTextInsertEvent> for QAccessibleTextCursorEvent[src]

unsafe fn static_downcast(
    ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextInsertEvent>
[src]

Calls C++ function: QAccessibleTextInsertEvent* static_cast<QAccessibleTextInsertEvent*>(QAccessibleTextCursorEvent* ptr).

impl StaticDowncast<QAccessibleTextInsertEvent> for QAccessibleEvent[src]

unsafe fn static_downcast(
    ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextInsertEvent>
[src]

Calls C++ function: QAccessibleTextInsertEvent* static_cast<QAccessibleTextInsertEvent*>(QAccessibleEvent* ptr).

impl StaticUpcast<QAccessibleEvent> for QAccessibleTextInsertEvent[src]

unsafe fn static_upcast(
    ptr: Ptr<QAccessibleTextInsertEvent>
) -> Ptr<QAccessibleEvent>
[src]

Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleTextInsertEvent* ptr).

impl StaticUpcast<QAccessibleTextCursorEvent> for QAccessibleTextInsertEvent[src]

unsafe fn static_upcast(
    ptr: Ptr<QAccessibleTextInsertEvent>
) -> Ptr<QAccessibleTextCursorEvent>
[src]

Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextInsertEvent* 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.