Struct qt_core::ItemSelectionOperation
source · pub struct ItemSelectionOperation(/* private fields */);
Expand description
This enum is used in QGraphicsScene to specify what to do with currently selected items when setting a selection area.
C++ enum: Qt::ItemSelectionOperation
.
This enum is used in QGraphicsScene to specify what to do with currently selected items when setting a selection area.
See also QGraphicsScene::setSelectionArea().
Implementations§
source§impl ItemSelectionOperation
impl ItemSelectionOperation
sourcepub const ReplaceSelection: ItemSelectionOperation = _
pub const ReplaceSelection: ItemSelectionOperation = _
The currently selected items are replaced by items in the selection area. (C++ enum variant: ReplaceSelection = 0
)
sourcepub const AddToSelection: ItemSelectionOperation = _
pub const AddToSelection: ItemSelectionOperation = _
The items in the selection area are added to the currently selected items. (C++ enum variant: AddToSelection = 1
)
Trait Implementations§
source§impl Clone for ItemSelectionOperation
impl Clone for ItemSelectionOperation
source§fn clone(&self) -> ItemSelectionOperation
fn clone(&self) -> ItemSelectionOperation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ItemSelectionOperation
impl Debug for ItemSelectionOperation
source§impl From<ItemSelectionOperation> for c_int
impl From<ItemSelectionOperation> for c_int
source§fn from(value: ItemSelectionOperation) -> Self
fn from(value: ItemSelectionOperation) -> Self
Converts to this type from the input type.
source§impl From<i32> for ItemSelectionOperation
impl From<i32> for ItemSelectionOperation
source§impl PartialEq for ItemSelectionOperation
impl PartialEq for ItemSelectionOperation
source§fn eq(&self, other: &ItemSelectionOperation) -> bool
fn eq(&self, other: &ItemSelectionOperation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ItemSelectionOperation
impl Eq for ItemSelectionOperation
impl StructuralEq for ItemSelectionOperation
impl StructuralPartialEq for ItemSelectionOperation
Auto Trait Implementations§
impl RefUnwindSafe for ItemSelectionOperation
impl Send for ItemSelectionOperation
impl Sync for ItemSelectionOperation
impl Unpin for ItemSelectionOperation
impl UnwindSafe for ItemSelectionOperation
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more