Skip to main content

QItemSelection

Struct QItemSelection 

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

C++ class: QItemSelection.

Implementations§

Source§

impl QItemSelection

Source

pub unsafe fn contains(&self, index: impl CastInto<Ref<QModelIndex>>) -> bool

Calls C++ function: bool QItemSelection::contains(const QModelIndex& index) const.

Source

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

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

Source

pub unsafe fn indexes(&self) -> CppBox<QListOfQModelIndex>

Calls C++ function: QList<QModelIndex> QItemSelection::indexes() const.

Source

pub unsafe fn merge( &self, other: impl CastInto<Ref<QItemSelection>>, command: QFlags<SelectionFlag>, )

Calls C++ function: void QItemSelection::merge(const QItemSelection& other, QFlags<QItemSelectionModel::SelectionFlag> command).

Source

pub unsafe fn new_0a() -> CppBox<QItemSelection>

Calls C++ function: [constructor] void QItemSelection::QItemSelection().

Source

pub unsafe fn new_2a( top_left: impl CastInto<Ref<QModelIndex>>, bottom_right: impl CastInto<Ref<QModelIndex>>, ) -> CppBox<QItemSelection>

Calls C++ function: [constructor] void QItemSelection::QItemSelection(const QModelIndex& topLeft, const QModelIndex& bottomRight).

Source

pub unsafe fn new_copy( other: impl CastInto<Ref<QItemSelection>>, ) -> CppBox<QItemSelection>

Calls C++ function: [constructor] void QItemSelection::QItemSelection(const QItemSelection& other).

Source

pub unsafe fn select( &self, top_left: impl CastInto<Ref<QModelIndex>>, bottom_right: impl CastInto<Ref<QModelIndex>>, )

Calls C++ function: void QItemSelection::select(const QModelIndex& topLeft, const QModelIndex& bottomRight).

Source

pub unsafe fn split( range: impl CastInto<Ref<QItemSelectionRange>>, other: impl CastInto<Ref<QItemSelectionRange>>, result: impl CastInto<Ptr<QItemSelection>>, )

Calls C++ function: static void QItemSelection::split(const QItemSelectionRange& range, const QItemSelectionRange& other, QItemSelection* result).

Methods from Deref<Target = QListOfQItemSelectionRange>§

Source

pub unsafe fn add_assign_q_list_of_q_item_selection_range( &self, l: impl CastInto<Ref<QListOfQItemSelectionRange>>, ) -> Ref<QListOfQItemSelectionRange>

Calls C++ function: QList<QItemSelectionRange>& QList<QItemSelectionRange>::operator+=(const QList<QItemSelectionRange>& l).

Source

pub unsafe fn add_assign_q_item_selection_range( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> Ref<QListOfQItemSelectionRange>

Calls C++ function: QList<QItemSelectionRange>& QList<QItemSelectionRange>::operator+=(const QItemSelectionRange& t).

Source

pub unsafe fn append_q_item_selection_range( &self, t: impl CastInto<Ref<QItemSelectionRange>>, )

Calls C++ function: void QList<QItemSelectionRange>::append(const QItemSelectionRange& t).

Source

pub unsafe fn append_q_list_of_q_item_selection_range( &self, t: impl CastInto<Ref<QListOfQItemSelectionRange>>, )

Calls C++ function: void QList<QItemSelectionRange>::append(const QList<QItemSelectionRange>& t).

Source

pub unsafe fn at(&self, i: c_int) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::at(int i) const.

Source

pub unsafe fn back_mut(&self) -> Ref<QItemSelectionRange>

Calls C++ function: QItemSelectionRange& QList<QItemSelectionRange>::back().

Source

pub unsafe fn back(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::back() const.

Source

pub unsafe fn begin_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<QItemSelectionRange>::iterator QList<QItemSelectionRange>::begin().

Source

pub unsafe fn begin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::begin() const.

Source

pub unsafe fn cbegin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::cbegin() const.

Source

pub unsafe fn cend(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::cend() const.

Source

pub unsafe fn clear(&self)

Calls C++ function: void QList<QItemSelectionRange>::clear().

Source

pub unsafe fn const_begin(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::constBegin() const.

Source

pub unsafe fn const_end(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::constEnd() const.

Source

pub unsafe fn const_first(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::constFirst() const.

Source

pub unsafe fn const_last(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::constLast() const.

Source

pub unsafe fn contains( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::contains(const QItemSelectionRange& t) const.

Source

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

Calls C++ function: QList<QItemSelectionRange>& QList<QItemSelectionRange>::operator=(const QList<QItemSelectionRange>& l).

Source

pub unsafe fn count_1a( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::count(const QItemSelectionRange& t) const.

Source

pub unsafe fn count_0a(&self) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::count() const.

Source

pub unsafe fn detach(&self)

Calls C++ function: void QList<QItemSelectionRange>::detach().

Source

pub unsafe fn detach_shared(&self)

Calls C++ function: void QList<QItemSelectionRange>::detachShared().

Source

pub unsafe fn empty(&self) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::empty() const.

Source

pub unsafe fn end_mut(&self) -> CppBox<Iterator>

Calls C++ function: QList<QItemSelectionRange>::iterator QList<QItemSelectionRange>::end().

Source

pub unsafe fn end(&self) -> CppBox<ConstIterator>

Calls C++ function: QList<QItemSelectionRange>::const_iterator QList<QItemSelectionRange>::end() const.

Source

pub unsafe fn ends_with( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::endsWith(const QItemSelectionRange& t) const.

Source

pub unsafe fn erase_1a( &self, pos: impl CastInto<Ref<Iterator>>, ) -> CppBox<Iterator>

Calls C++ function: QList<QItemSelectionRange>::iterator QList<QItemSelectionRange>::erase(QList<QItemSelectionRange>::iterator pos).

Source

pub unsafe fn erase_2a( &self, first: impl CastInto<Ref<Iterator>>, last: impl CastInto<Ref<Iterator>>, ) -> CppBox<Iterator>

Calls C++ function: QList<QItemSelectionRange>::iterator QList<QItemSelectionRange>::erase(QList<QItemSelectionRange>::iterator first, QList<QItemSelectionRange>::iterator last).

Source

pub unsafe fn first_mut(&self) -> Ref<QItemSelectionRange>

Calls C++ function: QItemSelectionRange& QList<QItemSelectionRange>::first().

Source

pub unsafe fn first(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::first() const.

Source

pub unsafe fn front_mut(&self) -> Ref<QItemSelectionRange>

Calls C++ function: QItemSelectionRange& QList<QItemSelectionRange>::front().

Source

pub unsafe fn front(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::front() const.

Source

pub unsafe fn index(&self, i: c_int) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::operator[](int i) const.

Source

pub unsafe fn index_mut(&self, i: c_int) -> Ref<QItemSelectionRange>

Calls C++ function: QItemSelectionRange& QList<QItemSelectionRange>::operator[](int i).

Source

pub unsafe fn index_of_2a( &self, t: impl CastInto<Ref<QItemSelectionRange>>, from: c_int, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::indexOf(const QItemSelectionRange& t, int from = …) const.

Source

pub unsafe fn index_of_1a( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::indexOf(const QItemSelectionRange& t) const.

Source

pub unsafe fn insert_int_q_item_selection_range( &self, i: c_int, t: impl CastInto<Ref<QItemSelectionRange>>, )

Calls C++ function: void QList<QItemSelectionRange>::insert(int i, const QItemSelectionRange& t).

Source

pub unsafe fn insert_iterator_q_item_selection_range( &self, before: impl CastInto<Ref<Iterator>>, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> CppBox<Iterator>

Calls C++ function: QList<QItemSelectionRange>::iterator QList<QItemSelectionRange>::insert(QList<QItemSelectionRange>::iterator before, const QItemSelectionRange& t).

Source

pub unsafe fn is_detached(&self) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::isDetached() const.

Source

pub unsafe fn is_empty(&self) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::isEmpty() const.

Source

pub unsafe fn is_shared_with( &self, other: impl CastInto<Ref<QListOfQItemSelectionRange>>, ) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::isSharedWith(const QList<QItemSelectionRange>& other) const.

Source

pub unsafe fn last_mut(&self) -> Ref<QItemSelectionRange>

Calls C++ function: QItemSelectionRange& QList<QItemSelectionRange>::last().

Source

pub unsafe fn last(&self) -> Ref<QItemSelectionRange>

Calls C++ function: const QItemSelectionRange& QList<QItemSelectionRange>::last() const.

Source

pub unsafe fn last_index_of_2a( &self, t: impl CastInto<Ref<QItemSelectionRange>>, from: c_int, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::lastIndexOf(const QItemSelectionRange& t, int from = …) const.

Source

pub unsafe fn last_index_of_1a( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::lastIndexOf(const QItemSelectionRange& t) const.

Source

pub unsafe fn length(&self) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::length() const.

Source

pub unsafe fn mid_2a( &self, pos: c_int, length: c_int, ) -> CppBox<QListOfQItemSelectionRange>

Calls C++ function: QList<QItemSelectionRange> QList<QItemSelectionRange>::mid(int pos, int length = …) const.

Source

pub unsafe fn mid_1a(&self, pos: c_int) -> CppBox<QListOfQItemSelectionRange>

Calls C++ function: QList<QItemSelectionRange> QList<QItemSelectionRange>::mid(int pos) const.

Source

pub unsafe fn move_(&self, from: c_int, to: c_int)

Calls C++ function: void QList<QItemSelectionRange>::move(int from, int to).

Source

pub unsafe fn pop_back(&self)

Calls C++ function: void QList<QItemSelectionRange>::pop_back().

Source

pub unsafe fn pop_front(&self)

Calls C++ function: void QList<QItemSelectionRange>::pop_front().

Source

pub unsafe fn prepend(&self, t: impl CastInto<Ref<QItemSelectionRange>>)

Calls C++ function: void QList<QItemSelectionRange>::prepend(const QItemSelectionRange& t).

Source

pub unsafe fn push_back(&self, t: impl CastInto<Ref<QItemSelectionRange>>)

Calls C++ function: void QList<QItemSelectionRange>::push_back(const QItemSelectionRange& t).

Source

pub unsafe fn push_front(&self, t: impl CastInto<Ref<QItemSelectionRange>>)

Calls C++ function: void QList<QItemSelectionRange>::push_front(const QItemSelectionRange& t).

Source

pub unsafe fn remove_all( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::removeAll(const QItemSelectionRange& t).

Source

pub unsafe fn remove_at(&self, i: c_int)

Calls C++ function: void QList<QItemSelectionRange>::removeAt(int i).

Source

pub unsafe fn remove_first(&self)

Calls C++ function: void QList<QItemSelectionRange>::removeFirst().

Source

pub unsafe fn remove_last(&self)

Calls C++ function: void QList<QItemSelectionRange>::removeLast().

Source

pub unsafe fn remove_one( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::removeOne(const QItemSelectionRange& t).

Source

pub unsafe fn replace( &self, i: c_int, t: impl CastInto<Ref<QItemSelectionRange>>, )

Calls C++ function: void QList<QItemSelectionRange>::replace(int i, const QItemSelectionRange& t).

Source

pub unsafe fn reserve(&self, size: c_int)

Calls C++ function: void QList<QItemSelectionRange>::reserve(int size).

Source

pub unsafe fn set_sharable(&self, sharable: bool)

Calls C++ function: void QList<QItemSelectionRange>::setSharable(bool sharable).

Source

pub unsafe fn size(&self) -> c_int

Calls C++ function: int QList<QItemSelectionRange>::size() const.

Source

pub unsafe fn starts_with( &self, t: impl CastInto<Ref<QItemSelectionRange>>, ) -> bool

Calls C++ function: bool QList<QItemSelectionRange>::startsWith(const QItemSelectionRange& t) const.

Source

pub unsafe fn swap_1a( &self, other: impl CastInto<Ref<QListOfQItemSelectionRange>>, )

Calls C++ function: void QList<QItemSelectionRange>::swap(QList<QItemSelectionRange>& other).

Source

pub unsafe fn swap_2a(&self, i: c_int, j: c_int)

Calls C++ function: void QList<QItemSelectionRange>::swap(int i, int j).

Source

pub unsafe fn swap_items_at(&self, i: c_int, j: c_int)

Calls C++ function: void QList<QItemSelectionRange>::swapItemsAt(int i, int j).

Source

pub unsafe fn take_at(&self, i: c_int) -> CppBox<QItemSelectionRange>

Calls C++ function: QItemSelectionRange QList<QItemSelectionRange>::takeAt(int i).

Source

pub unsafe fn take_first(&self) -> CppBox<QItemSelectionRange>

Calls C++ function: QItemSelectionRange QList<QItemSelectionRange>::takeFirst().

Source

pub unsafe fn take_last(&self) -> CppBox<QItemSelectionRange>

Calls C++ function: QItemSelectionRange QList<QItemSelectionRange>::takeLast().

Source

pub unsafe fn value_1a(&self, i: c_int) -> CppBox<QItemSelectionRange>

Calls C++ function: QItemSelectionRange QList<QItemSelectionRange>::value(int i) const.

Source

pub unsafe fn value_2a( &self, i: c_int, default_value: impl CastInto<Ref<QItemSelectionRange>>, ) -> CppBox<QItemSelectionRange>

Calls C++ function: QItemSelectionRange QList<QItemSelectionRange>::value(int i, const QItemSelectionRange& defaultValue) const.

Trait Implementations§

Source§

impl CppDeletable for QItemSelection

Source§

unsafe fn delete(&self)

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

Source§

impl Deref for QItemSelection

Source§

fn deref(&self) -> &QListOfQItemSelectionRange

Calls C++ function: QList<QItemSelectionRange>* static_cast<QList<QItemSelectionRange>*>(QItemSelection* ptr).

Source§

type Target = QListOfQItemSelectionRange

The resulting type after dereferencing.
Source§

impl StaticDowncast<QItemSelection> for QListOfQItemSelectionRange

Source§

unsafe fn static_downcast( ptr: Ptr<QListOfQItemSelectionRange>, ) -> Ptr<QItemSelection>

Calls C++ function: QItemSelection* static_cast<QItemSelection*>(QList<QItemSelectionRange>* ptr).

Source§

impl StaticUpcast<QListOfQItemSelectionRange> for QItemSelection

Source§

unsafe fn static_upcast( ptr: Ptr<QItemSelection>, ) -> Ptr<QListOfQItemSelectionRange>

Calls C++ function: QList<QItemSelectionRange>* static_cast<QList<QItemSelectionRange>*>(QItemSelection* 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.