QAccessibleTableModelChangeEvent

Struct QAccessibleTableModelChangeEvent 

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

The QAccessibleTableModelChangeEvent signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows, firstColumn and lastColumn will return -1. Likewise for columns, the row functions may return -1.

C++ class: QAccessibleTableModelChangeEvent.

C++ documentation:

The QAccessibleTableModelChangeEvent signifies a change in a table, list, or tree where cells are added or removed. If the change affected a number of rows, firstColumn and lastColumn will return -1. Likewise for columns, the row functions may return -1.

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

Implementations§

Source§

impl QAccessibleTableModelChangeEvent

Source

pub unsafe fn first_column(&self) -> c_int

Returns the first changed column.

Calls C++ function: int QAccessibleTableModelChangeEvent::firstColumn() const.

C++ documentation:

Returns the first changed column.

See also setFirstColumn().

Source

pub unsafe fn first_row(&self) -> c_int

Returns the first changed row.

Calls C++ function: int QAccessibleTableModelChangeEvent::firstRow() const.

C++ documentation:

Returns the first changed row.

See also setFirstRow().

Source

pub unsafe fn last_column(&self) -> c_int

Returns the last changed column.

Calls C++ function: int QAccessibleTableModelChangeEvent::lastColumn() const.

C++ documentation:

Returns the last changed column.

See also setLastColumn().

Source

pub unsafe fn last_row(&self) -> c_int

Returns the last changed row.

Calls C++ function: int QAccessibleTableModelChangeEvent::lastRow() const.

C++ documentation:

Returns the last changed row.

See also setLastRow().

Source

pub unsafe fn model_change_type(&self) -> ModelChangeType

Returns the type of change.

Calls C++ function: QAccessibleTableModelChangeEvent::ModelChangeType QAccessibleTableModelChangeEvent::modelChangeType() const.

C++ documentation:

Returns the type of change.

See also setModelChangeType().

Source

pub unsafe fn from_q_object_model_change_type( obj: impl CastInto<Ptr<QObject>>, change_type: ModelChangeType, ) -> CppBox<QAccessibleTableModelChangeEvent>

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.

Calls C++ function: [constructor] void QAccessibleTableModelChangeEvent::QAccessibleTableModelChangeEvent(QObject* obj, QAccessibleTableModelChangeEvent::ModelChangeType changeType).

C++ documentation:

Constructs a new QAccessibleTableModelChangeEvent for object of with changeType.

Source

pub unsafe fn from_q_accessible_interface_model_change_type( iface: impl CastInto<Ptr<QAccessibleInterface>>, change_type: ModelChangeType, ) -> CppBox<QAccessibleTableModelChangeEvent>

Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType.

Calls C++ function: [constructor] void QAccessibleTableModelChangeEvent::QAccessibleTableModelChangeEvent(QAccessibleInterface* iface, QAccessibleTableModelChangeEvent::ModelChangeType changeType).

C++ documentation:

Constructs a new QAccessibleTableModelChangeEvent for interface iface with a model change type changeType.

Source

pub unsafe fn set_first_column(&self, col: c_int)

Sets the first changed column.

Calls C++ function: void QAccessibleTableModelChangeEvent::setFirstColumn(int col).

C++ documentation:

Sets the first changed column.

See also firstColumn().

Source

pub unsafe fn set_first_row(&self, row: c_int)

Sets the first changed row.

Calls C++ function: void QAccessibleTableModelChangeEvent::setFirstRow(int row).

C++ documentation:

Sets the first changed row.

See also firstRow().

Source

pub unsafe fn set_last_column(&self, col: c_int)

Sets the last changed column.

Calls C++ function: void QAccessibleTableModelChangeEvent::setLastColumn(int col).

C++ documentation:

Sets the last changed column.

See also lastColumn().

Source

pub unsafe fn set_last_row(&self, row: c_int)

Sets the last changed row.

Calls C++ function: void QAccessibleTableModelChangeEvent::setLastRow(int row).

C++ documentation:

Sets the last changed row.

See also lastRow().

Source

pub unsafe fn set_model_change_type(&self, change_type: ModelChangeType)

Sets the type of change to changeType.

Calls C++ function: void QAccessibleTableModelChangeEvent::setModelChangeType(QAccessibleTableModelChangeEvent::ModelChangeType changeType).

C++ documentation:

Sets the type of change to changeType.

See also modelChangeType().

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 QAccessibleTableModelChangeEvent

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QAccessibleTableModelChangeEvent

Source§

fn deref(&self) -> &QAccessibleEvent

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

Source§

type Target = QAccessibleEvent

The resulting type after dereferencing.
Source§

impl DynamicCast<QAccessibleTableModelChangeEvent> for QAccessibleEvent

Source§

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

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

Source§

impl StaticDowncast<QAccessibleTableModelChangeEvent> for QAccessibleEvent

Source§

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

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

Source§

impl StaticUpcast<QAccessibleEvent> for QAccessibleTableModelChangeEvent

Source§

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

Calls C++ function: QAccessibleEvent* static_cast<QAccessibleEvent*>(QAccessibleTableModelChangeEvent* 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.