[−][src]Struct qt_core::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
.
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]
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]
fn clone(&self) -> ItemSelectionMode
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ItemSelectionMode
[src]
impl Debug for ItemSelectionMode
[src]
impl Eq for ItemSelectionMode
[src]
impl From<ItemSelectionMode> for c_int
[src]
fn from(value: ItemSelectionMode) -> Self
[src]
impl From<i32> for ItemSelectionMode
[src]
impl PartialEq<ItemSelectionMode> for ItemSelectionMode
[src]
fn eq(&self, other: &ItemSelectionMode) -> bool
[src]
fn ne(&self, other: &ItemSelectionMode) -> bool
[src]
impl StructuralEq for ItemSelectionMode
[src]
impl StructuralPartialEq for ItemSelectionMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for ItemSelectionMode
impl Send for ItemSelectionMode
impl Sync for ItemSelectionMode
impl Unpin for ItemSelectionMode
impl UnwindSafe for ItemSelectionMode
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut 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>,