[−][src]Struct qt_widgets::q_graphics_pixmap_item::ShapeMode
This enum describes how QGraphicsPixmapItem calculates its shape and opaque area.
C++ enum: QGraphicsPixmapItem::ShapeMode
.
This enum describes how QGraphicsPixmapItem calculates its shape and opaque area.
The default value is MaskShape.
Methods
impl ShapeMode
[src]
impl ShapeMode
[src]
pub const MaskShape: ShapeMode
[src]
The shape is determined by calling QPixmap::mask(). This shape includes only the opaque pixels of the pixmap. Because the shape is more complex, however, it can be slower than the other modes, and uses more memory. (C++ enum variant: MaskShape = 0
)
pub const BoundingRectShape: ShapeMode
[src]
The shape is determined by tracing the outline of the pixmap. This is the fastest shape mode, but it does not take into account any transparent areas on the pixmap. (C++ enum variant: BoundingRectShape = 1
)
pub const HeuristicMaskShape: ShapeMode
[src]
The shape is determine by calling QPixmap::createHeuristicMask(). The performance and memory consumption is similar to MaskShape. (C++ enum variant: HeuristicMaskShape = 2
)
Trait Implementations
impl Eq for ShapeMode
[src]
impl Clone for ShapeMode
[src]
impl PartialEq<ShapeMode> for ShapeMode
[src]
impl From<i32> for ShapeMode
[src]
impl From<ShapeMode> for c_int
[src]
impl Copy for ShapeMode
[src]
impl Debug for ShapeMode
[src]
Auto Trait Implementations
impl Send for ShapeMode
impl Unpin for ShapeMode
impl Sync for ShapeMode
impl UnwindSafe for ShapeMode
impl RefUnwindSafe for ShapeMode
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>,