Skip to main content

QAccessibleTextInterface

Struct QAccessibleTextInterface 

Source
pub struct QAccessibleTextInterface { /* private fields */ }
Expand description

C++ class: QAccessibleTextInterface.

Implementations§

Source§

impl QAccessibleTextInterface

Source

pub unsafe fn add_selection(&self, start_offset: c_int, end_offset: c_int)

Calls C++ function: pure virtual void QAccessibleTextInterface::addSelection(int startOffset, int endOffset).

Source

pub unsafe fn attributes( &self, offset: c_int, start_offset: *mut c_int, end_offset: *mut c_int, ) -> CppBox<QString>

Calls C++ function: pure virtual QString QAccessibleTextInterface::attributes(int offset, int* startOffset, int* endOffset) const.

Source

pub unsafe fn character_count(&self) -> c_int

Calls C++ function: pure virtual int QAccessibleTextInterface::characterCount() const.

Source

pub unsafe fn character_rect(&self, offset: c_int) -> CppBox<QRect>

Calls C++ function: pure virtual QRect QAccessibleTextInterface::characterRect(int offset) const.

Source

pub unsafe fn copy_from( &self, other: impl CastInto<Ref<QAccessibleTextInterface>>, ) -> Ref<QAccessibleTextInterface>

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

Source

pub unsafe fn cursor_position(&self) -> c_int

Calls C++ function: pure virtual int QAccessibleTextInterface::cursorPosition() const.

Source

pub unsafe fn offset_at_point(&self, point: impl CastInto<Ref<QPoint>>) -> c_int

Calls C++ function: pure virtual int QAccessibleTextInterface::offsetAtPoint(const QPoint& point) const.

Source

pub unsafe fn remove_selection(&self, selection_index: c_int)

Calls C++ function: pure virtual void QAccessibleTextInterface::removeSelection(int selectionIndex).

Source

pub unsafe fn scroll_to_substring(&self, start_index: c_int, end_index: c_int)

Calls C++ function: pure virtual void QAccessibleTextInterface::scrollToSubstring(int startIndex, int endIndex).

Source

pub unsafe fn selection( &self, selection_index: c_int, start_offset: *mut c_int, end_offset: *mut c_int, )

Calls C++ function: pure virtual void QAccessibleTextInterface::selection(int selectionIndex, int* startOffset, int* endOffset) const.

Source

pub unsafe fn selection_count(&self) -> c_int

Calls C++ function: pure virtual int QAccessibleTextInterface::selectionCount() const.

Source

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

Calls C++ function: pure virtual void QAccessibleTextInterface::setCursorPosition(int position).

Source

pub unsafe fn set_selection( &self, selection_index: c_int, start_offset: c_int, end_offset: c_int, )

Calls C++ function: pure virtual void QAccessibleTextInterface::setSelection(int selectionIndex, int startOffset, int endOffset).

Source

pub unsafe fn text( &self, start_offset: c_int, end_offset: c_int, ) -> CppBox<QString>

Calls C++ function: pure virtual QString QAccessibleTextInterface::text(int startOffset, int endOffset) const.

Source

pub unsafe fn text_after_offset( &self, offset: c_int, boundary_type: TextBoundaryType, start_offset: *mut c_int, end_offset: *mut c_int, ) -> CppBox<QString>

Calls C++ function: virtual QString QAccessibleTextInterface::textAfterOffset(int offset, QAccessible::TextBoundaryType boundaryType, int* startOffset, int* endOffset) const.

Source

pub unsafe fn text_at_offset( &self, offset: c_int, boundary_type: TextBoundaryType, start_offset: *mut c_int, end_offset: *mut c_int, ) -> CppBox<QString>

Calls C++ function: virtual QString QAccessibleTextInterface::textAtOffset(int offset, QAccessible::TextBoundaryType boundaryType, int* startOffset, int* endOffset) const.

Source

pub unsafe fn text_before_offset( &self, offset: c_int, boundary_type: TextBoundaryType, start_offset: *mut c_int, end_offset: *mut c_int, ) -> CppBox<QString>

Calls C++ function: virtual QString QAccessibleTextInterface::textBeforeOffset(int offset, QAccessible::TextBoundaryType boundaryType, int* startOffset, int* endOffset) const.

Trait Implementations§

Source§

impl CppDeletable for QAccessibleTextInterface

Source§

unsafe fn delete(&self)

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

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

Source§

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

Source§

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.