[−][src]Struct qt_gui::QAccessibleTextRemoveEvent
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().
Methods
impl QAccessibleTextRemoveEvent
[src]
pub unsafe fn change_position(&self) -> c_int
[src]
Returns the position where the text was removed.
Calls C++ function: int QAccessibleTextRemoveEvent::changePosition() const
.
Returns the position where the text was removed.
pub unsafe fn from_q_object_int_q_string(
obj: impl CastInto<Ptr<QObject>>,
position: c_int,
text: impl CastInto<Ref<QString>>
) -> CppBox<QAccessibleTextRemoveEvent>
[src]
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.
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>
[src]
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.
pub unsafe fn text_removed(&self) -> CppBox<QString>
[src]
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>
pub unsafe fn cursor_position(&self) -> c_int
[src]
Returns the cursor position.
Calls C++ function: int QAccessibleTextCursorEvent::cursorPosition() const
.
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)
.
Sets the cursor position for this event.
See also cursorPosition().
Trait Implementations
impl CppDeletable for QAccessibleTextRemoveEvent
[src]
unsafe fn delete(&self)
[src]
Calls C++ function: virtual [destructor] void QAccessibleTextRemoveEvent::~QAccessibleTextRemoveEvent()
.
impl Deref for QAccessibleTextRemoveEvent
[src]
type Target = QAccessibleTextCursorEvent
The resulting type after dereferencing.
fn deref(&self) -> &QAccessibleTextCursorEvent
[src]
Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextRemoveEvent* ptr)
.
impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
[src]
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* dynamic_cast<QAccessibleTextRemoveEvent*>(QAccessibleTextCursorEvent* ptr)
.
impl DynamicCast<QAccessibleTextRemoveEvent> for QAccessibleEvent
[src]
unsafe fn dynamic_cast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
[src]
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* dynamic_cast<QAccessibleTextRemoveEvent*>(QAccessibleEvent* ptr)
.
impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleTextCursorEvent
[src]
unsafe fn static_downcast(
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
[src]
ptr: Ptr<QAccessibleTextCursorEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* static_cast<QAccessibleTextRemoveEvent*>(QAccessibleTextCursorEvent* ptr)
.
impl StaticDowncast<QAccessibleTextRemoveEvent> for QAccessibleEvent
[src]
unsafe fn static_downcast(
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
[src]
ptr: Ptr<QAccessibleEvent>
) -> Ptr<QAccessibleTextRemoveEvent>
Calls C++ function: QAccessibleTextRemoveEvent* static_cast<QAccessibleTextRemoveEvent*>(QAccessibleEvent* ptr)
.
impl StaticUpcast<QAccessibleEvent> for QAccessibleTextRemoveEvent
[src]
unsafe fn static_upcast(
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleEvent>
[src]
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleEvent>
Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleTextRemoveEvent* ptr)
.
impl StaticUpcast<QAccessibleTextCursorEvent> for QAccessibleTextRemoveEvent
[src]
unsafe fn static_upcast(
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleTextCursorEvent>
[src]
ptr: Ptr<QAccessibleTextRemoveEvent>
) -> Ptr<QAccessibleTextCursorEvent>
Calls C++ function: QAccessibleTextCursorEvent* static_cast<QAccessibleTextCursorEvent*>(QAccessibleTextRemoveEvent* ptr)
.
Auto Trait Implementations
impl RefUnwindSafe for QAccessibleTextRemoveEvent
impl Send for QAccessibleTextRemoveEvent
impl Sync for QAccessibleTextRemoveEvent
impl Unpin for QAccessibleTextRemoveEvent
impl UnwindSafe for QAccessibleTextRemoveEvent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,