Struct qt_core::ItemSelectionMode
source · 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 moresource§impl Debug for ItemSelectionMode
impl Debug for ItemSelectionMode
source§impl From<ItemSelectionMode> for c_int
impl From<ItemSelectionMode> for c_int
source§fn from(value: ItemSelectionMode) -> Self
fn from(value: ItemSelectionMode) -> Self
source§impl From<i32> for ItemSelectionMode
impl From<i32> for ItemSelectionMode
source§impl PartialEq for ItemSelectionMode
impl PartialEq for ItemSelectionMode
source§fn eq(&self, other: &ItemSelectionMode) -> bool
fn eq(&self, other: &ItemSelectionMode) -> bool
self
and other
values to be equal, and is used
by ==
.