#[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
.
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
impl QTableWidgetSelectionRange
Sourcepub unsafe fn bottom_row(&self) -> c_int
pub unsafe fn bottom_row(&self) -> c_int
Returns the bottom row of the range.
Calls C++ function: int QTableWidgetSelectionRange::bottomRow() const
.
Returns the bottom row of the range.
See also topRow(), rightColumn(), and rowCount().
Sourcepub unsafe fn column_count(&self) -> c_int
pub unsafe fn column_count(&self) -> c_int
Returns the number of columns in the range.
Calls C++ function: int QTableWidgetSelectionRange::columnCount() const
.
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().
Sourcepub unsafe fn copy_from(
&self,
other: impl CastInto<Ref<QTableWidgetSelectionRange>>,
) -> Ref<QTableWidgetSelectionRange>
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)
.
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.
Sourcepub unsafe fn left_column(&self) -> c_int
pub unsafe fn left_column(&self) -> c_int
Returns the left column of the range.
Calls C++ function: int QTableWidgetSelectionRange::leftColumn() const
.
Returns the left column of the range.
See also rightColumn(), topRow(), and columnCount().
Sourcepub unsafe fn new_0a() -> CppBox<QTableWidgetSelectionRange>
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()
.
Constructs an table selection range, i.e. a range whose rowCount() and columnCount() are 0.
Sourcepub unsafe fn new_4a(
top: c_int,
left: c_int,
bottom: c_int,
right: c_int,
) -> CppBox<QTableWidgetSelectionRange>
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)
.
Constructs the table selection range from the given top, left, bottom and right table rows and columns.
See also topRow(), leftColumn(), bottomRow(), and rightColumn().
Sourcepub unsafe fn new_copy(
other: impl CastInto<Ref<QTableWidgetSelectionRange>>,
) -> CppBox<QTableWidgetSelectionRange>
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)
.
Constructs a the table selection range by copying the given other table selection range.
Sourcepub unsafe fn right_column(&self) -> c_int
pub unsafe fn right_column(&self) -> c_int
Returns the right column of the range.
Calls C++ function: int QTableWidgetSelectionRange::rightColumn() const
.
Returns the right column of the range.
See also leftColumn(), bottomRow(), and columnCount().
Sourcepub unsafe fn row_count(&self) -> c_int
pub unsafe fn row_count(&self) -> c_int
Returns the number of rows in the range.
Calls C++ function: int QTableWidgetSelectionRange::rowCount() const
.
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().