[][src]Struct qt_widgets::q_graphics_scene::ItemIndexMethod

#[repr(transparent)]
pub struct ItemIndexMethod(_);

This enum describes the indexing algorithms QGraphicsScene provides for managing positional information about items on the scene.

C++ enum: QGraphicsScene::ItemIndexMethod.

C++ documentation:

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]

pub fn to_int(&self) -> c_int[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]

impl PartialEq<ItemIndexMethod> for ItemIndexMethod[src]

impl From<i32> for ItemIndexMethod[src]

impl From<ItemIndexMethod> for c_int[src]

impl Copy for ItemIndexMethod[src]

impl Debug for ItemIndexMethod[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> StaticUpcast<T> for T[src]

impl<T, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]