[][src]Struct qt_widgets::q_graphics_view::CacheModeFlag

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

This enum describes the flags that you can set for a QGraphicsView's cache mode.

C++ enum: QGraphicsView::CacheModeFlag.

C++ documentation:

This enum describes the flags that you can set for a QGraphicsView's cache mode.

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

See also cacheMode.

Methods

impl CacheModeFlag[src]

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

impl CacheModeFlag[src]

pub const CacheNone: CacheModeFlag[src]

All painting is done directly onto the viewport. (C++ enum variant: CacheNone = 0)

pub const CacheBackground: CacheModeFlag[src]

The background is cached. This affects both custom backgrounds, and backgrounds based on the backgroundBrush property. When this flag is enabled, QGraphicsView will allocate one pixmap with the full size of the viewport. (C++ enum variant: CacheBackground = 1)

Trait Implementations

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

type Output = QFlags<CacheModeFlag>

The resulting type after applying the | operator.

impl Clone for CacheModeFlag[src]

impl Copy for CacheModeFlag[src]

impl Debug for CacheModeFlag[src]

impl Eq for CacheModeFlag[src]

impl From<CacheModeFlag> for c_int[src]

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

impl From<i32> for CacheModeFlag[src]

impl PartialEq<CacheModeFlag> for CacheModeFlag[src]

impl StructuralEq for CacheModeFlag[src]

impl StructuralPartialEq for CacheModeFlag[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.