[−][src]Struct qt_widgets::QTableWidgetSelectionRange
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.
Methods
impl QTableWidgetSelectionRange
[src]
pub unsafe fn bottom_row(&self) -> c_int
[src]
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().
pub unsafe fn column_count(&self) -> c_int
[src]
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().
pub unsafe fn copy_from(
&mut self,
other: impl CastInto<Ref<QTableWidgetSelectionRange>>
) -> MutRef<QTableWidgetSelectionRange>
[src]
&mut self,
other: impl CastInto<Ref<QTableWidgetSelectionRange>>
) -> MutRef<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.
pub unsafe fn left_column(&self) -> c_int
[src]
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().
pub unsafe fn new_0a() -> CppBox<QTableWidgetSelectionRange>
[src]
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.
pub unsafe fn new_4a(
top: c_int,
left: c_int,
bottom: c_int,
right: c_int
) -> CppBox<QTableWidgetSelectionRange>
[src]
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().
pub unsafe fn new_copy(
other: impl CastInto<Ref<QTableWidgetSelectionRange>>
) -> CppBox<QTableWidgetSelectionRange>
[src]
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.
pub unsafe fn right_column(&self) -> c_int
[src]
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().
pub unsafe fn row_count(&self) -> c_int
[src]
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().
pub unsafe fn top_row(&self) -> c_int
[src]
Returns the top row of the range.
Calls C++ function: int QTableWidgetSelectionRange::topRow() const
.
Returns the top row of the range.
See also bottomRow(), leftColumn(), and rowCount().
Trait Implementations
impl CppDeletable for QTableWidgetSelectionRange
[src]
Auto Trait Implementations
impl Send for QTableWidgetSelectionRange
impl Unpin for QTableWidgetSelectionRange
impl Sync for QTableWidgetSelectionRange
impl UnwindSafe for QTableWidgetSelectionRange
impl RefUnwindSafe for QTableWidgetSelectionRange
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,