Struct qt_gui::QAccessibleTextRemoveEvent
source · #[repr(C)]pub struct QAccessibleTextRemoveEvent { /* private fields */ }
Expand description
The QAccessibleTextRemoveEvent class notifies of text being deleted.
C++ class: QAccessibleTextRemoveEvent
.
The QAccessibleTextRemoveEvent class notifies of text being deleted.
This class is used with QAccessible::updateAccessibility().
Implementations§
source§impl QAccessibleTextRemoveEvent
impl QAccessibleTextRemoveEvent
sourcepub unsafe fn change_position(&self) -> c_int
pub unsafe fn change_position(&self) -> c_int
Returns the position where the text was removed.
Calls C++ function: int QAccessibleTextRemoveEvent::changePosition() const
.
Returns the position where the text was removed.
sourcepub unsafe fn from_q_object_int_q_string(
obj: impl CastInto<Ptr<QObject>>,
position: c_int,
text: impl CastInto<Ref<QString>>
) -> CppBox<QAccessibleTextRemoveEvent>
pub unsafe fn from_q_object_int_q_string( obj: impl CastInto<Ptr<QObject>>, position: c_int, text: impl CastInto<Ref<QString>> ) -> CppBox<QAccessibleTextRemoveEvent>
Constructs a new QAccessibleTextRemoveEvent event for object. The text has been removed at position. By default it is assumed that the cursor has moved to position. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.
Calls C++ function: [constructor] void QAccessibleTextRemoveEvent::QAccessibleTextRemoveEvent(QObject* obj, int position, const QString& text)
.
Constructs a new QAccessibleTextRemoveEvent event for object. The text has been removed at position. By default it is assumed that the cursor has moved to position. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.
sourcepub unsafe fn from_q_accessible_interface_int_q_string(
iface: impl CastInto<Ptr<QAccessibleInterface>>,
position: c_int,
text: impl CastInto<Ref<QString>>
) -> CppBox<QAccessibleTextRemoveEvent>
pub unsafe fn from_q_accessible_interface_int_q_string( iface: impl CastInto<Ptr<QAccessibleInterface>>, position: c_int, text: impl CastInto<Ref<QString>> ) -> CppBox<QAccessibleTextRemoveEvent>
Constructs a new QAccessibleTextRemoveEvent event for iface. The text has been removed at position. By default it is assumed that the cursor has moved to position. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.
Calls C++ function: [constructor] void QAccessibleTextRemoveEvent::QAccessibleTextRemoveEvent(QAccessibleInterface* iface, int position, const QString& text)
.
Constructs a new QAccessibleTextRemoveEvent event for iface. The text has been removed at position. By default it is assumed that the cursor has moved to position. If that is not the case, one needs to manually set it with QAccessibleTextCursorEvent::setCursorPosition() for this event.
sourcepub unsafe fn text_removed(&self) -> CppBox<QString>
pub unsafe fn text_removed(&self) -> CppBox<QString>
Returns the text that has been removed.
Calls C++ function: QString QAccessibleTextRemoveEvent::textRemoved() const
.
Returns the text that has been removed.
Methods from Deref<Target = QAccessibleTextCursorEvent>§
sourcepub unsafe fn cursor_position(&self) -> c_int
pub unsafe fn cursor_position(&self) -> c_int
Returns the cursor position.
Calls C++ function: int QAccessibleTextCursorEvent::cursorPosition() const
.
Returns the cursor position.
See also setCursorPosition().
sourcepub unsafe fn set_cursor_position(&self, position: c_int)
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)
.
Sets the cursor position for this event.
See also cursorPosition().
Methods from Deref<Target = QAccessibleEvent>§
sourcepub unsafe fn accessible_interface(&self) -> Ptr<QAccessibleInterface>
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
.
Returns the QAccessibleInterface associated with the event. The caller of this function takes ownership of the returned interface.
sourcepub unsafe fn child(&self) -> c_int
pub unsafe fn child(&self) -> c_int
Returns the child index.
Calls C++ function: int QAccessibleEvent::child() const
.
Returns the child index.
See also setChild().
sourcepub unsafe fn object(&self) -> QPtr<QObject>
pub unsafe fn object(&self) -> QPtr<QObject>
Returns the event object.
Calls C++ function: QObject* QAccessibleEvent::object() const
.
Returns the event object.
sourcepub unsafe fn set_child(&self, chld: c_int)
pub unsafe fn set_child(&self, chld: c_int)
Sets the child index to child.
Calls C++ function: void QAccessibleEvent::setChild(int chld)
.
Sets the child index to child.
See also child().
Trait Implementations§
source§impl Deref for QAccessibleTextRemoveEvent
impl Deref for QAccessibleTextRemoveEvent
source§fn deref(&self) -> &QAccessibleTextCursorEvent
fn deref(&self) -> &QAccessibleTextCursorEvent
Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextRemoveEvent* ptr)
.
§type Target = QAccessibleTextCursorEvent
type Target = QAccessibleTextCursorEvent
source§impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleEvent
impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleEvent
source§unsafe fn dynamic_cast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
unsafe fn dynamic_cast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* dynamic_cast<QAccessibleTextRemoveEvent*>(QAccessibleEvent* ptr)
.
source§impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
source§unsafe fn dynamic_cast(
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
unsafe fn dynamic_cast( ptr: Ptr<QAccessibleTextCursorEvent> ) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* dynamic_cast<QAccessibleTextRemoveEvent*>(QAccessibleTextCursorEvent* ptr)
.
source§impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleEvent
impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleEvent
source§unsafe fn static_downcast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
unsafe fn static_downcast( ptr: Ptr<QAccessibleEvent> ) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* static_cast<QAccessibleTextRemoveEvent*>(QAccessibleEvent* ptr)
.
source§impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
source§unsafe fn static_downcast(
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
unsafe fn static_downcast( ptr: Ptr<QAccessibleTextCursorEvent> ) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* static_cast<QAccessibleTextRemoveEvent*>(QAccessibleTextCursorEvent* ptr)
.
source§impl StaticUpcast<QAccessibleEvent> for QAccessibleTextRemoveEvent
impl StaticUpcast<QAccessibleEvent> for QAccessibleTextRemoveEvent
source§unsafe fn static_upcast(
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleEvent>
unsafe fn static_upcast( ptr: Ptr<QAccessibleTextRemoveEvent> ) -> Ptr<QAccessibleEvent>
Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleTextRemoveEvent* ptr)
.
source§impl StaticUpcast<QAccessibleTextCursorEvent> for QAccessibleTextRemoveEvent
impl StaticUpcast<QAccessibleTextCursorEvent> for QAccessibleTextRemoveEvent
source§unsafe fn static_upcast(
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleTextCursorEvent>
unsafe fn static_upcast( ptr: Ptr<QAccessibleTextRemoveEvent> ) -> Ptr<QAccessibleTextCursorEvent>
Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextRemoveEvent* ptr)
.