pub struct CacheModeFlag(/* private fields */);
Expand description
This enum describes the flags that you can set for a QGraphicsView's cache mode.
C++ enum: QGraphicsView::CacheModeFlag
.
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.
Implementations§
Source§impl CacheModeFlag
impl CacheModeFlag
Sourcepub const CacheNone: CacheModeFlag
pub const CacheNone: CacheModeFlag
All painting is done directly onto the viewport. (C++ enum variant: CacheNone = 0
)
Sourcepub const CacheBackground: CacheModeFlag
pub const CacheBackground: CacheModeFlag
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§
Source§impl<T: Into<QFlags<CacheModeFlag>>> BitOr<T> for CacheModeFlag
impl<T: Into<QFlags<CacheModeFlag>>> BitOr<T> for CacheModeFlag
Source§impl Clone for CacheModeFlag
impl Clone for CacheModeFlag
Source§fn clone(&self) -> CacheModeFlag
fn clone(&self) -> CacheModeFlag
Returns a duplicate 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 CacheModeFlag
impl Debug for CacheModeFlag
Source§impl From<CacheModeFlag> for QFlags<CacheModeFlag>
impl From<CacheModeFlag> for QFlags<CacheModeFlag>
Source§fn from(value: CacheModeFlag) -> Self
fn from(value: CacheModeFlag) -> Self
Converts to this type from the input type.
Source§impl From<CacheModeFlag> for c_int
impl From<CacheModeFlag> for c_int
Source§fn from(value: CacheModeFlag) -> Self
fn from(value: CacheModeFlag) -> Self
Converts to this type from the input type.
Source§impl From<i32> for CacheModeFlag
impl From<i32> for CacheModeFlag
Source§impl PartialEq for CacheModeFlag
impl PartialEq for CacheModeFlag
impl Copy for CacheModeFlag
impl Eq for CacheModeFlag
impl StructuralPartialEq for CacheModeFlag
Auto Trait Implementations§
impl Freeze for CacheModeFlag
impl RefUnwindSafe for CacheModeFlag
impl Send for CacheModeFlag
impl Sync for CacheModeFlag
impl Unpin for CacheModeFlag
impl UnwindSafe for CacheModeFlag
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