[][src]Struct qt_gui::q_painter_path::ElementType

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

This enum describes the types of elements used to connect vertices in subpaths.

C++ enum: QPainterPath::ElementType.

C++ documentation:

This enum describes the types of elements used to connect vertices in subpaths.

Note that elements added as closed subpaths using the addEllipse(), addPath(), addPolygon(), addRect(), addRegion() and addText() convenience functions, is actually added to the path as a collection of separate elements using the moveTo(), lineTo() and cubicTo() functions.

See also elementAt() and elementCount().

Methods

impl ElementType[src]

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

impl ElementType[src]

pub const MoveToElement: ElementType[src]

A new subpath. See also moveTo(). (C++ enum variant: MoveToElement = 0)

pub const LineToElement: ElementType[src]

A line. See also lineTo(). (C++ enum variant: LineToElement = 1)

pub const CurveToElement: ElementType[src]

A curve. See also cubicTo() and quadTo(). (C++ enum variant: CurveToElement = 2)

pub const CurveToDataElement: ElementType[src]

The extra data required to describe a curve in a CurveToElement element. (C++ enum variant: CurveToDataElement = 3)

Trait Implementations

impl Clone for ElementType[src]

impl Copy for ElementType[src]

impl Debug for ElementType[src]

impl Eq for ElementType[src]

impl From<ElementType> for c_int[src]

impl From<i32> for ElementType[src]

impl PartialEq<ElementType> for ElementType[src]

impl StructuralEq for ElementType[src]

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