[][src]Struct qt_widgets::q_graphics_pixmap_item::ShapeMode

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

This enum describes how QGraphicsPixmapItem calculates its shape and opaque area.

C++ enum: QGraphicsPixmapItem::ShapeMode.

C++ documentation:

This enum describes how QGraphicsPixmapItem calculates its shape and opaque area.

The default value is MaskShape.

Methods

impl ShapeMode[src]

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

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]