[][src]Struct qt_core::ItemSelectionMode

#[repr(transparent)]pub struct ItemSelectionMode(_);

This enum is used in QGraphicsItem, QGraphicsScene and QGraphicsView to specify how items are selected, or how to determine if shapes and items collide.

C++ enum: Qt::ItemSelectionMode.

C++ documentation:

This enum is used in QGraphicsItem, QGraphicsScene and QGraphicsView to specify how items are selected, or how to determine if shapes and items collide.

See also QGraphicsScene::items(), QGraphicsScene::collidingItems(), QGraphicsView::items(), QGraphicsItem::collidesWithItem(), and QGraphicsItem::collidesWithPath().

Methods

impl ItemSelectionMode[src]

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

impl ItemSelectionMode[src]

pub const ContainsItemShape: ItemSelectionMode[src]

The output list contains only items whose shape is fully contained inside the selection area. Items that intersect with the area's outline are not included. (C++ enum variant: ContainsItemShape = 0)

pub const IntersectsItemShape: ItemSelectionMode[src]

The output list contains both items whose shape is fully contained inside the selection area, and items that intersect with the area's outline. This is a common mode for rubber band selection. (C++ enum variant: IntersectsItemShape = 1)

pub const ContainsItemBoundingRect: ItemSelectionMode[src]

The output list contains only items whose bounding rectangle is fully contained inside the selection area. Items that intersect with the area's outline are not included. (C++ enum variant: ContainsItemBoundingRect = 2)

pub const IntersectsItemBoundingRect: ItemSelectionMode[src]

The output list contains both items whose bounding rectangle is fully contained inside the selection area, and items that intersect with the area's outline. This method is commonly used for determining areas that need redrawing. (C++ enum variant: IntersectsItemBoundingRect = 3)

Trait Implementations

impl Clone for ItemSelectionMode[src]

impl Copy for ItemSelectionMode[src]

impl Debug for ItemSelectionMode[src]

impl Eq for ItemSelectionMode[src]

impl From<ItemSelectionMode> for c_int[src]

impl From<i32> for ItemSelectionMode[src]

impl PartialEq<ItemSelectionMode> for ItemSelectionMode[src]

impl StructuralEq for ItemSelectionMode[src]

impl StructuralPartialEq for ItemSelectionMode[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.