#[repr(C)]
pub struct QAccessibleTextUpdateEvent { /* private fields */ }
Expand description

The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.

C++ class: QAccessibleTextUpdateEvent.

C++ documentation:

The QAccessibleTextUpdateEvent class notifies about text changes. This is for accessibles that support editable text such as line edits. This event occurs for example when a portion of selected text gets replaced by pasting a new text or in override mode of editors.

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

Implementations§

source§

impl QAccessibleTextUpdateEvent

source

pub unsafe fn change_position(&self) -> c_int

Returns where the change took place.

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

C++ documentation:

Returns where the change took place.

source

pub unsafe fn from_q_object_int2_q_string( obj: impl CastInto<Ptr<QObject>>, position: c_int, old_text: impl CastInto<Ref<QString>>, text: impl CastInto<Ref<QString>> ) -> CppBox<QAccessibleTextUpdateEvent>

Constructs a new QAccessibleTextUpdateEvent for object. The text change takes place at position where the oldText was removed and text inserted instead.

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

C++ documentation:

Constructs a new QAccessibleTextUpdateEvent for object. The text change takes place at position where the oldText was removed and text inserted instead.

source

pub unsafe fn from_q_accessible_interface_int2_q_string( iface: impl CastInto<Ptr<QAccessibleInterface>>, position: c_int, old_text: impl CastInto<Ref<QString>>, text: impl CastInto<Ref<QString>> ) -> CppBox<QAccessibleTextUpdateEvent>

Constructs a new QAccessibleTextUpdateEvent for iface. The text change takes place at position where the oldText was removed and text inserted instead.

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

C++ documentation:

Constructs a new QAccessibleTextUpdateEvent for iface. The text change takes place at position where the oldText was removed and text inserted instead.

source

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

Returns the inserted text.

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

C++ documentation:

Returns the inserted text.

source

pub unsafe fn text_removed(&self) -> CppBox<QString>

Returns the removed text.

Calls C++ function: QString QAccessibleTextUpdateEvent::textRemoved() const.

C++ documentation:

Returns the removed text.

Methods from Deref<Target = QAccessibleTextCursorEvent>§

source

pub unsafe fn cursor_position(&self) -> c_int

Returns the cursor position.

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

C++ documentation:

Returns the cursor position.

See also setCursorPosition().

source

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

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

Methods from Deref<Target = QAccessibleEvent>§

source

pub unsafe fn accessible_interface(&self) -> Ptr<QAccessibleInterface>

Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.

Calls C++ function: virtual QAccessibleInterface* QAccessibleEvent::accessibleInterface() const.

C++ documentation:

Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.

source

pub unsafe fn child(&self) -> c_int

Returns the child index.

Calls C++ function: int QAccessibleEvent::child() const.

C++ documentation:

Returns the child index.

See also setChild().

source

pub unsafe fn object(&self) -> QPtr<QObject>

Returns the event object.

Calls C++ function: QObject* QAccessibleEvent::object() const.

C++ documentation:

Returns the event object.

source

pub unsafe fn set_child(&self, chld: c_int)

Sets the child index to child.

Calls C++ function: void QAccessibleEvent::setChild(int chld).

C++ documentation:

Sets the child index to child.

See also child().

source

pub unsafe fn type_(&self) -> Event

Returns the event type.

Calls C++ function: QAccessible::Event QAccessibleEvent::type() const.

C++ documentation:

Returns the event type.

source

pub unsafe fn unique_id(&self) -> c_uint

Calls C++ function: unsigned int QAccessibleEvent::uniqueId() const.

Trait Implementations§

source§

impl CppDeletable for QAccessibleTextUpdateEvent

source§

unsafe fn delete(&self)

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

source§

impl Deref for QAccessibleTextUpdateEvent

source§

fn deref(&self) -> &QAccessibleTextCursorEvent

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

§

type Target = QAccessibleTextCursorEvent

The resulting type after dereferencing.
source§

impl DynamicCast<QAccessibleTextUpdateEvent> for QAccessibleEvent

source§

unsafe fn dynamic_cast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleTextUpdateEvent>

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

source§

impl DynamicCast<QAccessibleTextUpdateEvent> for QAccessibleTextCursorEvent

source§

unsafe fn dynamic_cast( ptr: Ptr<QAccessibleTextCursorEvent> ) -> Ptr<QAccessibleTextUpdateEvent>

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

source§

impl StaticDowncast<QAccessibleTextUpdateEvent> for QAccessibleEvent

source§

unsafe fn static_downcast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleTextUpdateEvent>

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

source§

impl StaticDowncast<QAccessibleTextUpdateEvent> for QAccessibleTextCursorEvent

source§

unsafe fn static_downcast( ptr: Ptr<QAccessibleTextCursorEvent> ) -> Ptr<QAccessibleTextUpdateEvent>

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

source§

impl StaticUpcast<QAccessibleEvent> for QAccessibleTextUpdateEvent

source§

unsafe fn static_upcast( ptr: Ptr<QAccessibleTextUpdateEvent> ) -> Ptr<QAccessibleEvent>

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

source§

impl StaticUpcast<QAccessibleTextCursorEvent> for QAccessibleTextUpdateEvent

source§

unsafe fn static_upcast( ptr: Ptr<QAccessibleTextUpdateEvent> ) -> Ptr<QAccessibleTextCursorEvent>

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

§

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

§

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.