pub struct ItemSelectionMode(/* private fields */);
Expand description
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
.
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().
Implementations§
Source§impl ItemSelectionMode
impl ItemSelectionMode
Sourcepub const ContainsItemShape: ItemSelectionMode
pub const ContainsItemShape: ItemSelectionMode
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
)
Sourcepub const IntersectsItemShape: ItemSelectionMode
pub const IntersectsItemShape: ItemSelectionMode
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
)
Sourcepub const ContainsItemBoundingRect: ItemSelectionMode
pub const ContainsItemBoundingRect: ItemSelectionMode
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
)
Sourcepub const IntersectsItemBoundingRect: ItemSelectionMode
pub const IntersectsItemBoundingRect: ItemSelectionMode
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§
Source§impl Clone for ItemSelectionMode
impl Clone for ItemSelectionMode
Source§fn clone(&self) -> ItemSelectionMode
fn clone(&self) -> ItemSelectionMode
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more