Struct QTableWidgetSelectionRange

Source
#[repr(C)]
pub struct QTableWidgetSelectionRange { /* private fields */ }
Expand description

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

C++ class: QTableWidgetSelectionRange.

C++ documentation:

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

The QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.

Note: If the item within the selection range is marked as not selectable, e.g., itemFlags() & Qt::ItemIsSelectable == 0 then it will not appear in the selection range.

Implementations§

Source§

impl QTableWidgetSelectionRange

Source

pub unsafe fn bottom_row(&self) -> c_int

Returns the bottom row of the range.

Calls C++ function: int QTableWidgetSelectionRange::bottomRow() const.

C++ documentation:

Returns the bottom row of the range.

See also topRow(), rightColumn(), and rowCount().

Source

pub unsafe fn column_count(&self) -> c_int

Returns the number of columns in the range.

Calls C++ function: int QTableWidgetSelectionRange::columnCount() const.

C++ documentation:

Returns the number of columns in the range.

This is equivalent to rightColumn() - leftColumn() + 1.

This function was introduced in Qt 4.1.

See also rowCount(), leftColumn(), and rightColumn().

Source

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

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

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

C++ documentation:

The QTableWidgetSelectionRange class provides a way to interact with selection in a model without using model indexes and a selection model.

The QTableWidgetSelectionRange class stores the top left and bottom right rows and columns of a selection range in a table. The selections in the table may consist of several selection ranges.

Note: If the item within the selection range is marked as not selectable, e.g., itemFlags() & Qt::ItemIsSelectable == 0 then it will not appear in the selection range.

Source

pub unsafe fn left_column(&self) -> c_int

Returns the left column of the range.

Calls C++ function: int QTableWidgetSelectionRange::leftColumn() const.

C++ documentation:

Returns the left column of the range.

See also rightColumn(), topRow(), and columnCount().

Source

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

Constructs an table selection range, i.e. a range whose rowCount() and columnCount() are 0.

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

C++ documentation:

Constructs an table selection range, i.e. a range whose rowCount() and columnCount() are 0.

Source

pub unsafe fn new_4a( top: c_int, left: c_int, bottom: c_int, right: c_int, ) -> CppBox<QTableWidgetSelectionRange>

Constructs the table selection range from the given top, left, bottom and right table rows and columns.

Calls C++ function: [constructor] void QTableWidgetSelectionRange::QTableWidgetSelectionRange(int top, int left, int bottom, int right).

C++ documentation:

Constructs the table selection range from the given top, left, bottom and right table rows and columns.

See also topRow(), leftColumn(), bottomRow(), and rightColumn().

Source

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

Constructs a the table selection range by copying the given other table selection range.

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

C++ documentation:

Constructs a the table selection range by copying the given other table selection range.

Source

pub unsafe fn right_column(&self) -> c_int

Returns the right column of the range.

Calls C++ function: int QTableWidgetSelectionRange::rightColumn() const.

C++ documentation:

Returns the right column of the range.

See also leftColumn(), bottomRow(), and columnCount().

Source

pub unsafe fn row_count(&self) -> c_int

Returns the number of rows in the range.

Calls C++ function: int QTableWidgetSelectionRange::rowCount() const.

C++ documentation:

Returns the number of rows in the range.

This is equivalent to bottomRow() - topRow() + 1.

This function was introduced in Qt 4.1.

See also columnCount(), topRow(), and bottomRow().

Source

pub unsafe fn top_row(&self) -> c_int

Returns the top row of the range.

Calls C++ function: int QTableWidgetSelectionRange::topRow() const.

C++ documentation:

Returns the top row of the range.

See also bottomRow(), leftColumn(), and rowCount().

Trait Implementations§

Source§

impl CppDeletable for QTableWidgetSelectionRange

Source§

unsafe fn delete(&self)

Destroys the table selection range.

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

C++ documentation:

Destroys the table selection range.

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.