[−][src]Struct qt_widgets::q_graphics_scene::ItemIndexMethod
This enum describes the indexing algorithms QGraphicsScene provides for managing positional information about items on the scene.
C++ enum: QGraphicsScene::ItemIndexMethod
.
This enum describes the indexing algorithms QGraphicsScene provides for managing positional information about items on the scene.
See also setItemIndexMethod() and bspTreeDepth.
Methods
impl ItemIndexMethod
[src]
impl ItemIndexMethod
[src]
pub const BspTreeIndex: ItemIndexMethod
[src]
A Binary Space Partitioning tree is applied. All QGraphicsScene's item location algorithms are of an order close to logarithmic complexity, by making use of binary search. Adding, moving and removing items is logarithmic. This approach is best for static scenes (i.e., scenes where most items do not move). (C++ enum variant: BspTreeIndex = 0
)
pub const NoIndex: ItemIndexMethod
[src]
No index is applied. Item location is of linear complexity, as all items on the scene are searched. Adding, moving and removing items, however, is done in constant time. This approach is ideal for dynamic scenes, where many items are added, moved or removed continuously. (C++ enum variant: NoIndex = -1
)
Trait Implementations
impl Eq for ItemIndexMethod
[src]
impl Clone for ItemIndexMethod
[src]
fn clone(&self) -> ItemIndexMethod
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialEq<ItemIndexMethod> for ItemIndexMethod
[src]
fn eq(&self, other: &ItemIndexMethod) -> bool
[src]
fn ne(&self, other: &ItemIndexMethod) -> bool
[src]
impl From<i32> for ItemIndexMethod
[src]
impl From<ItemIndexMethod> for c_int
[src]
fn from(value: ItemIndexMethod) -> Self
[src]
impl Copy for ItemIndexMethod
[src]
impl Debug for ItemIndexMethod
[src]
Auto Trait Implementations
impl Send for ItemIndexMethod
impl Unpin for ItemIndexMethod
impl Sync for ItemIndexMethod
impl UnwindSafe for ItemIndexMethod
impl RefUnwindSafe for ItemIndexMethod
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> StaticUpcast<T> for T
[src]
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
[src]
unsafe fn static_upcast_mut(ptr: MutPtr<T>) -> MutPtr<T>
[src]
impl<T, U> CastInto<U> for T where
U: CastFrom<T>,
[src]
U: CastFrom<T>,