[][src]Struct qt_widgets::QTableWidgetSelectionRange

#[repr(C)]pub struct QTableWidgetSelectionRange { /* fields omitted */ }

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.

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.

C++ documentation:

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.

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().

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

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.

pub unsafe fn left_column(&self) -> c_int[src]

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().

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().

C++ documentation:

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]

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().

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

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.

pub unsafe fn right_column(&self) -> c_int[src]

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().

pub unsafe fn row_count(&self) -> c_int[src]

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().

pub unsafe fn top_row(&self) -> c_int[src]

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

impl CppDeletable for QTableWidgetSelectionRange[src]

unsafe fn delete(&self)[src]

Destroys the table selection range.

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

C++ documentation:

Destroys the table selection range.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.