[][src]Struct qt_widgets::q_graphics_scene::SceneLayer

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

This enum describes the rendering layers in a QGraphicsScene. When QGraphicsScene draws the scene contents, it renders each of these layers separately, in order.

C++ enum: QGraphicsScene::SceneLayer.

C++ documentation:

This enum describes the rendering layers in a QGraphicsScene. When QGraphicsScene draws the scene contents, it renders each of these layers separately, in order.

Each layer represents a flag that can be OR'ed together when calling functions such as invalidate() or QGraphicsView::invalidateScene().

This enum was introduced or modified in Qt 4.3.

The SceneLayers type is a typedef for QFlags<SceneLayer>. It stores an OR combination of SceneLayer values.

See also invalidate() and QGraphicsView::invalidateScene().

Methods

impl SceneLayer[src]

pub fn to_int(&self) -> c_int[src]

impl SceneLayer[src]

pub const ItemLayer: SceneLayer[src]

The item layer. QGraphicsScene renders all items are in this layer by calling the virtual function drawItems(). The item layer is drawn after the background layer, but before the foreground layer. (C++ enum variant: ItemLayer = 1)

pub const BackgroundLayer: SceneLayer[src]

The background layer. QGraphicsScene renders the scene's background in this layer by calling the virtual function drawBackground(). The background layer is drawn first of all layers. (C++ enum variant: BackgroundLayer = 2)

pub const ForegroundLayer: SceneLayer[src]

The foreground layer. QGraphicsScene renders the scene's foreground in this layer by calling the virtual function drawForeground(). The foreground layer is drawn last of all layers. (C++ enum variant: ForegroundLayer = 4)

pub const AllLayers: SceneLayer[src]

All layers; this value represents a combination of all three layers. (C++ enum variant: AllLayers = 65535)

Trait Implementations

impl<T: Into<QFlags<SceneLayer>>> BitOr<T> for SceneLayer[src]

type Output = QFlags<SceneLayer>

The resulting type after applying the | operator.

impl Clone for SceneLayer[src]

impl Copy for SceneLayer[src]

impl Debug for SceneLayer[src]

impl Eq for SceneLayer[src]

impl From<SceneLayer> for c_int[src]

impl From<SceneLayer> for QFlags<SceneLayer>[src]

impl From<i32> for SceneLayer[src]

impl PartialEq<SceneLayer> for SceneLayer[src]

impl StructuralEq for SceneLayer[src]

impl StructuralPartialEq for SceneLayer[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.